get_website_reports
Retrieve analytics reports for a specific website to monitor performance and track metrics using the Umami Analytics API.
Instructions
Get all reports associated with a specific website
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID |
Implementation Reference
- src/tools/websites.ts:122-132 (handler)The tool 'get_website_reports' is registered and implemented in src/tools/websites.ts. It takes a 'websiteId' and fetches the reports for that website using the Umami client.
server.tool( "get_website_reports", "Get all reports associated with a specific website", { websiteId: z.string().describe("Website UUID"), }, async ({ websiteId }) => { const data = await client.call("GET", `/api/websites/${websiteId}/reports`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );