get_my_websites
Retrieve your website list from Umami Analytics to view, search, or manage tracking sites.
Instructions
Get the list of websites belonging to the current user
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 websites |
Implementation Reference
- src/tools/account.ts:16-32 (handler)The implementation of the get_my_websites tool, which includes its schema definition and the handler that calls the Umami API.
server.tool( "get_my_websites", "Get the list of websites belonging to the current user", { 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 websites"), }, async ({ page, pageSize, query }) => { const data = await client.call("GET", "/api/me/websites", undefined, { page, pageSize, query, }); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );