get_daterange
Retrieve the date range of available analytics data for a specified website to determine what historical information can be analyzed.
Instructions
Get the date range of available data for a website
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID |
Implementation Reference
- src/tools/stats.ts:142-151 (handler)The 'get_daterange' tool is registered and implemented directly within the server.tool call in src/tools/stats.ts. It fetches the date range for a specific website using a client call.
server.tool( "get_daterange", "Get the date range of available data for a website", { websiteId: z.string().describe("Website UUID"), }, async ({ websiteId }) => { const data = await client.call("GET", `/api/websites/${websiteId}/daterange`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; }