重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
amplitude-automation by composiohq/awesome-claude-skills
npx skills add https://github.com/composiohq/awesome-claude-skills --skill amplitude-automation通过 Composio 的 Amplitude 工具包和 Rube MCP 自动化 Amplitude 产品分析。
工具包文档 : composio.dev/toolkits/amplitude
RUBE_SEARCH_TOOLS 可用)RUBE_MANAGE_CONNECTIONS 建立活跃的 Amplitude 连接,并指定工具包为 amplitudeRUBE_SEARCH_TOOLS 以获取当前工具模式获取 Rube MCP : 在您的客户端配置中将 https://rube.app/mcp 添加为 MCP 服务器。无需 API 密钥——只需添加端点即可工作。
RUBE_SEARCH_TOOLS 有响应来验证 Rube MCP 是否可用广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
amplitude 调用 RUBE_MANAGE_CONNECTIONS使用场景 : 用户希望跟踪事件或将事件数据发送到 Amplitude
工具调用顺序 :
AMPLITUDE_SEND_EVENTS - 向 Amplitude 发送一个或多个事件 [必需]关键参数 :
events: 事件对象数组,每个对象包含:
event_type: 事件名称(例如 'page_view'、'purchase')user_id: 唯一用户标识符(如果没有 device_id 则为必需)device_id: 设备标识符(如果没有 user_id 则为必需)event_properties: 包含自定义事件属性的对象user_properties: 包含要设置的用户属性的对象time: 事件时间戳,自纪元以来的毫秒数注意事项 :
user_id 或 device_id 中的一个event_type;不能为空time 必须是以毫秒为单位(13 位纪元时间戳),而不是秒使用场景 : 用户希望查看特定用户的事件历史记录
工具调用顺序 :
AMPLITUDE_FIND_USER - 通过 ID 或属性查找用户 [先决条件]AMPLITUDE_GET_USER_ACTIVITY - 检索用户的事件流 [必需]关键参数 :
user: Amplitude 内部用户 ID(来自 FIND_USER)offset: 事件列表的分页偏移量limit: 要返回的最大事件数注意事项 :
user 参数需要 Amplitude 的内部用户 ID,而不是您应用程序的 user_idFIND_USER 以将您的 user_id 解析为 Amplitude 的内部 IDoffset 进行分页使用场景 : 用户希望查找用户或设置用户属性
工具调用顺序 :
AMPLITUDE_FIND_USER - 通过各种标识符搜索用户 [必需]AMPLITUDE_IDENTIFY - 设置或更新用户属性 [可选]关键参数 :
FIND_USER:
user: 搜索词(user_id、电子邮件或 Amplitude ID)IDENTIFY:
user_id: 您应用程序的用户标识符device_id: 设备标识符(user_id 的替代方案)user_properties: 包含 $set、$unset、$add、$append 操作的对象注意事项 :
FIND_USER 在 user_id、device_id 和 Amplitude ID 中搜索IDENTIFY 使用特殊的属性操作($set、$unset、$add、$append)$set 会覆盖现有值;$setOnce 仅在尚未设置时设置IDENTIFY 至少需要 user_id 或 device_id 中的一个使用场景 : 用户希望列出群组、查看群组详细信息或更新群组成员资格
工具调用顺序 :
AMPLITUDE_LIST_COHORTS - 列出所有已保存的群组 [必需]AMPLITUDE_GET_COHORT - 获取详细的群组信息 [可选]AMPLITUDE_UPDATE_COHORT_MEMBERSHIP - 向群组添加/移除用户 [可选]AMPLITUDE_CHECK_COHORT_STATUS - 检查异步群组操作状态 [可选]关键参数 :
LIST_COHORTS:无必需参数GET_COHORT:cohort_id(来自列表结果)UPDATE_COHORT_MEMBERSHIP:
cohort_id: 目标群组 IDmemberships: 包含 add 和/或 remove 用户 ID 数组的对象CHECK_COHORT_STATUS:来自更新响应的 request_id注意事项 :
UPDATE_COHORT_MEMBERSHIP 是异步的;使用 CHECK_COHORT_STATUS 进行验证request_id 以进行状态检查使用场景 : 用户希望发现 Amplitude 中可用的事件类型和类别
工具调用顺序 :
AMPLITUDE_GET_EVENT_CATEGORIES - 列出所有事件类别 [必需]关键参数 :
注意事项 :
event_type 值应用程序 user_id -> Amplitude 内部 ID:
1. 使用 user=your_user_id 调用 AMPLITUDE_FIND_USER
2. 从响应中提取 Amplitude 的内部用户 ID
3. 将内部 ID 用于 GET_USER_ACTIVITY
群组名称 -> 群组 ID:
1. 调用 AMPLITUDE_LIST_COHORTS
2. 在结果中按名称查找群组
3. 提取群组操作的 id
Amplitude IDENTIFY 支持以下属性操作:
$set: 设置属性值(覆盖现有值)$setOnce: 仅在属性尚未设置时设置$add: 递增数值属性$append: 追加到列表属性$unset: 完全移除属性示例结构:
{
"user_properties": {
"$set": {"plan": "premium", "company": "Acme"},
"$add": {"login_count": 1}
}
}
对于群组成员资格更新:
1. 调用 AMPLITUDE_UPDATE_COHORT_MEMBERSHIP -> 获取 request_id
2. 使用 request_id 调用 AMPLITUDE_CHECK_COHORT_STATUS
3. 重复步骤 2,直到状态为 'complete' 或 'error'
用户 ID :
FIND_USER 将您的 ID 解析为 Amplitude 的内部 IDGET_USER_ACTIVITY 需要 Amplitude 的内部 ID,而不是您的 user_id事件时间戳 :
速率限制 :
响应解析 :
data 键下| 任务 | 工具标识 | 关键参数 |
|---|---|---|
| 发送事件 | AMPLITUDE_SEND_EVENTS | events (数组) |
| 查找用户 | AMPLITUDE_FIND_USER | user |
| 获取用户活动 | AMPLITUDE_GET_USER_ACTIVITY | user, offset, limit |
| 识别用户 | AMPLITUDE_IDENTIFY | user_id, user_properties |
| 列出群组 | AMPLITUDE_LIST_COHORTS | (无) |
| 获取群组 | AMPLITUDE_GET_COHORT | cohort_id |
| 更新群组成员 | AMPLITUDE_UPDATE_COHORT_MEMBERSHIP | cohort_id, memberships |
| 检查群组状态 | AMPLITUDE_CHECK_COHORT_STATUS | request_id |
| 列出事件类别 | AMPLITUDE_GET_EVENT_CATEGORIES | (无) |
由 Composio 提供支持
每周安装数
66
代码仓库
GitHub 星标数
42.3K
首次出现
2026年2月6日
安全审计
安装于
claude-code51
opencode51
gemini-cli45
replit41
codex41
antigravity39
Automate Amplitude product analytics through Composio's Amplitude toolkit via Rube MCP.
Toolkit docs : composio.dev/toolkits/amplitude
RUBE_MANAGE_CONNECTIONS with toolkit amplitudeRUBE_SEARCH_TOOLS first to get current tool schemasGet Rube MCP : Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
RUBE_SEARCH_TOOLS respondsRUBE_MANAGE_CONNECTIONS with toolkit amplitudeWhen to use : User wants to track events or send event data to Amplitude
Tool sequence :
AMPLITUDE_SEND_EVENTS - Send one or more events to Amplitude [Required]Key parameters :
events: Array of event objects, each containing:
event_type: Name of the event (e.g., 'page_view', 'purchase')user_id: Unique user identifier (required if no device_id)device_id: Device identifier (required if no user_id)event_properties: Object with custom event propertiesuser_properties: Object with user properties to settime: Event timestamp in milliseconds since epochPitfalls :
user_id or device_id is required per eventevent_type is required for every event; cannot be emptytime must be in milliseconds (13-digit epoch), not secondsWhen to use : User wants to view event history for a specific user
Tool sequence :
AMPLITUDE_FIND_USER - Find user by ID or property [Prerequisite]AMPLITUDE_GET_USER_ACTIVITY - Retrieve user's event stream [Required]Key parameters :
user: Amplitude internal user ID (from FIND_USER)offset: Pagination offset for event listlimit: Maximum number of events to returnPitfalls :
user parameter requires Amplitude's internal user ID, NOT your application's user_idoffsetWhen to use : User wants to look up users or set user properties
Tool sequence :
AMPLITUDE_FIND_USER - Search for a user by various identifiers [Required]AMPLITUDE_IDENTIFY - Set or update user properties [Optional]Key parameters :
user: Search term (user_id, email, or Amplitude ID)user_id: Your application's user identifierdevice_id: Device identifier (alternative to user_id)user_properties: Object with $set, $unset, $add, $append operationsPitfalls :
$set, $unset, $add, $append)$set overwrites existing values; $setOnce only sets if not already setuser_id or device_id is required for IDENTIFYWhen to use : User wants to list cohorts, view cohort details, or update cohort membership
Tool sequence :
AMPLITUDE_LIST_COHORTS - List all saved cohorts [Required]AMPLITUDE_GET_COHORT - Get detailed cohort information [Optional]AMPLITUDE_UPDATE_COHORT_MEMBERSHIP - Add/remove users from a cohort [Optional]AMPLITUDE_CHECK_COHORT_STATUS - Check async cohort operation status [Optional]Key parameters :
cohort_id (from list results)cohort_id: Target cohort IDmemberships: Object with add and/or remove arrays of user IDsrequest_id from update responsePitfalls :
request_id from the update response is needed for status checkingWhen to use : User wants to discover available event types and categories in Amplitude
Tool sequence :
AMPLITUDE_GET_EVENT_CATEGORIES - List all event categories [Required]Key parameters :
Pitfalls :
Application user_id - > Amplitude internal ID:
1. Call AMPLITUDE_FIND_USER with user=your_user_id
2. Extract Amplitude's internal user ID from response
3. Use internal ID for GET_USER_ACTIVITY
Cohort name - > Cohort ID:
1. Call AMPLITUDE_LIST_COHORTS
2. Find cohort by name in results
3. Extract id for cohort operations
Amplitude IDENTIFY supports these property operations:
$set: Set property value (overwrites existing)$setOnce: Set only if property not already set$add: Increment numeric property$append: Append to list property$unset: Remove property entirelyExample structure:
{
"user_properties": {
"$set": {"plan": "premium", "company": "Acme"},
"$add": {"login_count": 1}
}
}
For cohort membership updates:
1. Call AMPLITUDE_UPDATE_COHORT_MEMBERSHIP -> get request_id
2. Call AMPLITUDE_CHECK_COHORT_STATUS with request_id
3. Repeat step 2 until status is 'complete' or 'error'
User IDs :
Event Timestamps :
Rate Limits :
Response Parsing :
data key| Task | Tool Slug | Key Params |
|---|---|---|
| Send events | AMPLITUDE_SEND_EVENTS | events (array) |
| Find user | AMPLITUDE_FIND_USER | user |
| Get user activity | AMPLITUDE_GET_USER_ACTIVITY | user, offset, limit |
| Identify user | AMPLITUDE_IDENTIFY | user_id, user_properties |
| List cohorts | AMPLITUDE_LIST_COHORTS | (none) |
| Get cohort | AMPLITUDE_GET_COHORT | cohort_id |
| Update cohort members | AMPLITUDE_UPDATE_COHORT_MEMBERSHIP | cohort_id, memberships |
| Check cohort status | AMPLITUDE_CHECK_COHORT_STATUS | request_id |
| List event categories | AMPLITUDE_GET_EVENT_CATEGORIES | (none) |
Powered byComposio
Weekly Installs
66
Repository
GitHub Stars
42.3K
First Seen
Feb 6, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code51
opencode51
gemini-cli45
replit41
codex41
antigravity39
Python PDF处理教程:合并拆分、提取文本表格、创建PDF文件
66,200 周安装