Skip to main content
Glama
mikusnuz

umami-mcp

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
NameRequiredDescriptionDefault
websiteIdYesWebsite UUID

Implementation Reference

  • 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) }] };
      }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mikusnuz/umami-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server