User Detail
rybbit_get_userRetrieve comprehensive user analytics including traits, session history, and activity data from Rybbit Analytics to understand user behavior and engagement patterns.
Instructions
Get detailed information about a specific user including their traits, session history, and activity summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site ID (numeric ID or domain identifier) | |
| userId | Yes | User ID (identified_user_id or internal user ID) |
Implementation Reference
- src/tools/users.ts:206-220 (handler)The handler implementation for the `rybbit_get_user` tool, which fetches details for a specific user.
async (args) => { try { const data = await client.get(`/sites/${args.siteId}/users/${args.userId}`); return { content: [{ type: "text" as const, text: truncateResponse(data) }], }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text" as const, text: `Error: ${message}` }], isError: true, }; } } ); - src/tools/users.ts:194-205 (registration)The registration block for the `rybbit_get_user` tool.
server.registerTool( "rybbit_get_user", { title: "User Detail", annotations: { readOnlyHint: true, idempotentHint: true, openWorldHint: true, destructiveHint: false }, description: "Get detailed information about a specific user including their traits, session history, and activity summary.", inputSchema: { siteId: siteIdSchema, userId: z.string().describe("User ID (identified_user_id or internal user ID)"), }, },