get_website
Retrieve detailed information about a specific website using its unique UUID identifier.
Instructions
Get details of a specific website by ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID |
Implementation Reference
- src/tools/websites.ts:32-35 (handler)Handler function for 'get_website' tool. Takes a websiteId string, calls the Umami API to GET /api/websites/{websiteId}, and returns the website details as JSON text content.
async ({ websiteId }) => { const data = await client.call("GET", `/api/websites/${websiteId}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } - src/tools/websites.ts:29-31 (schema)Input schema for 'get_website' tool — requires a single 'websiteId' string parameter (the website's UUID).
{ websiteId: z.string().describe("Website UUID"), }, - src/tools/websites.ts:26-36 (registration)Registration of 'get_website' tool via server.tool(...) inside registerWebsiteTools(). The tool is named 'get_website' with description 'Get details of a specific website by ID'.
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) }] }; } );