UNPKG

@umengfe/mcp-server-umeng-openapi

Version:

MCP server for using the Umeng OpenAPI

399 lines (398 loc) 22.4 kB
export const UMENG_OPENAPI_TOOLS = [ { name: "com.umeng.uapp/umeng.uapp.getAllAppData", description: "友盟开放API,获取所有App统计数据", inputSchema: { type: "object", properties: {}, required: [], }, }, { name: "com.umeng.uapp/umeng.uapp.getAppCount", description: "友盟开放API,获取App的总数量", inputSchema: { type: "object", properties: undefined, required: [], }, }, { name: "com.umeng.uapp/umeng.uapp.getAppList", description: "友盟开放API,获取App列表", inputSchema: { type: "object", properties: { page: { type: "number", description: "页号,从1开始,非必填" }, perPage: { type: "number", description: "每页显示数量(最大100),非必填" }, accessToken: { type: "string", description: "搜索时要填写的App 名字,非必填,用来搜索" }, }, required: [], }, }, { name: "com.umeng.uapp/umeng.uapp.getNewAccounts", description: "友盟开放API,获取单个应用或者说appkey的新增账号(仅游戏类型app)", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, periodType: { type: "string", description: "查询类型(按日daily,按周weekly,按月monthly 查询),非必需" }, channel: { type: "string", description: "渠道名称(仅限一个例如:App%20Store),非必需" }, }, required: ["appkey", "startDate", "endDate"], }, }, // 新增工具 { name: "com.umeng.uapp/umeng.uapp.getActiveAccounts", description: "友盟开放API,获取活跃账号(仅游戏类型app)", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, periodType: { type: "string", description: "查询类型(按日daily,按周weekly,按月monthly 查询),非必需" }, channel: { type: "string", description: "渠道名称(仅限一个例如:App%20Store),非必需" }, }, required: ["appkey", "startDate", "endDate"], }, }, { name: "com.umeng.uapp/umeng.uapp.getLaunchesByChannelOrVersion", description: "友盟开放API,根据渠道或版本条件,获取App启动次数", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, periodType: { type: "string", description: "查询类型(按日daily,按周weekly,按月monthly 查询),必需" }, channels: { type: "string", description: "渠道名称(仅限一个例如:App%20Store),非必需" }, versions: { type: "string", description: "版本号(仅限一个例如:1.0.0),非必需" }, }, required: ["appkey", "startDate", "endDate", "periodType"], }, }, { name: "com.umeng.uapp/umeng.uapp.getActiveUsersByChannelOrVersion", description: "友盟开放API,根据渠道或版本条件,获取App活跃用户数", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, periodType: { type: "string", description: "查询类型(按日daily,按周weekly,按月monthly 查询),必需" }, channels: { type: "string", description: "渠道名称 需要urlEncode转义(仅限一个例如:App%20Store),非必需" }, versions: { type: "string", description: "版本号 需要urlEncode转义(仅限一个例如:1.0.0),非必需" }, }, required: ["appkey", "startDate", "endDate", "periodType"], }, }, { name: "com.umeng.uapp/umeng.uapp.getNewUsersByChannelOrVersion", description: "友盟开放API,根据渠道或版本条件,获取App新增用户数", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, periodType: { type: "string", description: "查询类型(按日daily,按周weekly,按月monthly 查询),必需" }, channels: { type: "string", description: "渠道名称 需要urlEncode转义(仅限一个例如:App%20Store),非必需" }, versions: { type: "string", description: "版本号 需要urlEncode转义(仅限一个例如:1.0.0),非必需" }, }, required: ["appkey", "startDate", "endDate", "periodType"], }, }, // 获取事件参数值时长列表 umeng.uapp.event.param.getValueDurationList { name: "com.umeng.uapp/umeng.uapp.event.param.getValueDurationList", description: "友盟开放API,获取事件参数值时长列表", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, eventName: { type: "string", description: "自定义事件名称(通过umeng.uapp.event.list获取),必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, eventParamName: { type: "string", description: "自定义事件参数名称(通过umeng.uapp.event.param.list获取),必须填写" }, }, required: ["appkey", "eventName", "startDate", "endDate", "eventParamName"], } }, // 获取App今天与昨天的统计数据 getTodayYesterdayData { name: "com.umeng.uapp/umeng.uapp.getTodayYesterdayData", description: "友盟开放API,获取App今天与昨天的统计数据", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" } }, required: ["appkey"], } }, // 获取App昨天统计数据 getYesterdayData { name: "com.umeng.uapp/umeng.uapp.getYesterdayData", description: "友盟开放API,获取App昨天统计数据", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" } }, required: ["appkey"] }, }, // 获取App今天统计数据 getTodayData { name: "com.umeng.uapp/umeng.uapp.getTodayData", description: "友盟开放API,获取App今天统计数据", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" } }, required: ["appkey"] }, }, // 获取自定义事件的独立用户数 getUniqueUsers { name: "com.umeng.uapp/umeng.uapp.getUniqueUsers", description: "友盟开放API,获取自定义事件的独立用户数", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, eventName: { type: "string", description: "自定义事件名称(通过umeng.uapp.event.list获取)" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, }, required: ["appkey", "eventName", "startDate", "endDate"] } }, // 获取渠道维度统计数据 getChannelData { name: "com.umeng.uapp/umeng.uapp.getChannelData", description: "友盟开放API,获取渠道维度统计数据", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, date: { type: "string", description: "查询日期(例如:2018-01-01),必须填写" }, perPage: { type: "number", description: "每页显示数量(最大100),非必填" }, page: { type: "number", description: "页号,从1开始,非必填" }, }, required: ["appkey", "date"] } }, // 获取版本维度统计数据 getVersionData { name: "com.umeng.uapp/umeng.uapp.getVersionData", description: "友盟开放API,获取版本维度统计数据", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, date: { type: "string", description: "查询日期(例如:2018-01-01),必须填写" }, perPage: { type: "number", description: "每页显示数量(最大100),非必填" }, page: { type: "number", description: "页号,从1开始,非必填" }, }, required: ["appkey", "date"] } }, // 获取事件参数值统计数据 umeng.uapp.event.param.getData { name: "com.umeng.uapp/umeng.uapp.event.param.getData", description: "友盟开放API,获取事件参数值统计数据", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, eventName: { type: "string", description: "自定义事件名称(通过umeng.uapp.event.list获取),必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, eventParamName: { type: "string", description: "自定义事件参数名称(通过umeng.uapp.event.param.list获取),必须填写" }, paramValueName: { type: "string", description: "自定义参数值名称(通过umeng.uapp.event.param.getValueList获取),必须填写" }, }, required: ["appkey", "eventName", "startDate", "endDate", "eventParamName", "paramValueName"] } }, // 获取事件参数值列表 umeng.uapp.event.param.getValueList { name: "com.umeng.uapp/umeng.uapp.event.param.getValueList", description: "友盟开放API,获取事件参数值列表", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, eventName: { type: "string", description: "自定义事件名称(通过umeng.uapp.event.list获取),必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, eventParamName: { type: "string", description: "自定义事件参数名称(通过umeng.uapp.event.param.list获取),必须填写" } }, required: ["appkey", "eventName", "startDate", "endDate", "eventParamName", "paramValueName"], } }, // 获取自定义事件的统计数据 umeng.uapp.event.getData { name: "com.umeng.uapp/umeng.uapp.event.getData", description: "友盟开放API,获取自定义事件的统计数据", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, eventName: { type: "string", description: "自定义事件名称(通过umeng.uapp.event.list获取),必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, }, required: ["appkey", "eventName", "startDate", "endDate"], } }, // 获取事件参数列表 umeng.uapp.event.param.list { name: "com.umeng.uapp/umeng.uapp.event.list", description: "友盟开放API,获取事件参数列表", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, eventId: { type: "string", description: "事件ID(通过umeng.uapp.event.list接口查询得到的ID),必须填写" }, }, required: ["appkey", "startDate", "endDate", "eventId"], } }, //获取事件列表 umeng.uapp.event.list { name: "com.umeng.uapp/umeng.uapp.event.list", description: "友盟开放API,获取事件列表", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, perPage: { type: "number", description: "每页显示数量(最大100),非必填" }, page: { type: "number", description: "页号,从1开始,非必填" }, version: { type: "string", description: "应用版本号(仅限一个例如:1.0.0),非必填" }, }, required: ["appkey", "startDate", "endDate"], } }, // 获取App新增用户留存率 umeng.uapp.getRetentions { name: "com.umeng.uapp/umeng.uapp.getRetentions", description: "友盟开放API,获取App新增用户留存率,获取指定App某个时间范围内的新增用户留存率", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, periodType: { type: "string", description: "查询类型(按日daily,按周weekly,按月monthly 查询),非必需" }, channel: { type: "string", description: "渠道名称(仅限一个例如:App%20Store),非必需" }, version: { type: "string", description: "应用版本号(仅限一个例如:1.0.0),非必需" }, type: { type: "string", description: "newUser(默认):新增用户留存率;activeUser:活跃用户留存率,非必需" }, }, required: ["appkey", "startDate", "endDate"], } }, // 获取App使用时长 umeng.uapp.getDurations { name: "com.umeng.uapp/umeng.uapp.getDurations", description: "友盟开放API,获取App使用时长", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, date: { type: "string", description: "查询日期(例如:2018-01-01),必须填写" }, statType: { type: "string", description: "查询时长统计类型(按天daily,按次daily_per_launch),非必需" }, channel: { type: "string", description: "渠道名称(仅限一个例如:App%20Store),非必需" }, version: { type: "string", description: "应用版本号(仅限一个例如:1.0.0),非必需" }, }, required: ["appkey", "date"], } }, // 获取App启动次数 umeng.uapp.getLaunches { name: "com.umeng.uapp/umeng.uapp.getLaunches", description: "友盟开放API,获取App启动次数", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询开始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, periodType: { type: "string", description: "查询类型(按日daily,按周weekly,按月monthly 查询),非必需" }, }, required: ["appkey", "startDate", "endDate"], } }, // 获取App活跃用户数 umeng.uapp.getActiveUsers { name: "com.umeng.uapp/umeng.uapp.getActiveUsers", description: "友盟开放API,获取App活跃用户数", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, periodType: { type: "string", description: "查询类型(按日daily,按周weekly,按月monthly 查询),非必需" }, }, required: ["appkey", "startDate", "endDate"], } }, // 获取App新增用户数 umeng.uapp.getNewUsers { name: "com.umeng.uapp/umeng.uapp.getNewUsers", description: "友盟开放API,获取App新增用户数", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, startDate: { type: "string", description: "查询起始日期(例如:2018-01-01),必须填写" }, endDate: { type: "string", description: "查询截止日期(例如:2018-01-01),必须填写" }, periodType: { type: "string", description: "查询类型(按日daily,按周weekly,按月monthly 查询),非必需" }, }, required: ["appkey", "startDate", "endDate"], } }, // 获取App统计数据 umeng.uapp.getDailyData { name: "com.umeng.uapp/umeng.uapp.getDailyData", description: "友盟开放API,获取App统计数据", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, date: { type: "string", description: "查询日期(例如:2018-01-01),必须填写" }, version: { type: "string", description: "应用版本号(仅限一个例如:1.0.0),非必需" }, channel: { type: "string", description: "渠道名称(仅限一个例如:App%20Store),非必需" }, }, required: ["appkey", "date"], } }, // 创建自定义事件 umeng.uapp.event.create { name: "com.umeng.uapp/umeng.uapp.event.create", description: "友盟开放API,创建自定义事件", inputSchema: { type: "object", properties: { appkey: { type: "string", description: "应用的ID或appkey,必须填写" }, eventName: { type: "string", description: "自定义事件名(英文和数字,不允许特殊符号?/.\<>),必须填写" }, eventDisplayName: { type: "string", description: "自定义事件显示名(中文(需要urlEncode),英文和数字,不允许特殊符号?/.\<>),必须填写" }, eventType: { type: "boolean", description: "true 计算事件(数值型),用于统计数值型变量的累计值、均值及分布。false 计数事件(字符串型),用于统计字符串型变量的消息数及触发设备数。非必需" }, }, required: ["appkey", "eventName", "eventDisplayName"], }, }, ];