get_website
Retrieve website analytics details by ID from Umami Analytics to monitor performance and track metrics.
Instructions
Get details of a specific website by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID |
Implementation Reference
- src/tools/websites.ts:26-36 (handler)The "get_website" tool is registered and implemented within the registerWebsiteTools function in src/tools/websites.ts. It takes a websiteId, calls the Umami client, and returns the website details as text.
server.tool( "get_website", "Get details of a specific website by ID", { websiteId: z.string().describe("Website UUID"), }, async ({ websiteId }) => { const data = await client.call("GET", `/api/websites/${websiteId}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );