get_my_teams
Retrieve your team memberships from Umami Analytics with pagination and search options for efficient management.
Instructions
Get the list of teams the current user belongs to
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-based) | |
| pageSize | No | Results per page | |
| query | No | Search query to filter teams |
Implementation Reference
- src/tools/account.ts:34-50 (handler)Registration and handler implementation for the "get_my_teams" MCP tool.
server.tool( "get_my_teams", "Get the list of teams the current user belongs to", { page: z.number().optional().describe("Page number (1-based)"), pageSize: z.number().optional().describe("Results per page"), query: z.string().optional().describe("Search query to filter teams"), }, async ({ page, pageSize, query }) => { const data = await client.call("GET", "/api/me/teams", undefined, { page, pageSize, query, }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );