Skip to main content
Glama
mikusnuz

umami-mcp

get_daterange

Get the date range of available analytics data for a website. Provide the website UUID to retrieve the start and end dates of data coverage.

Instructions

Get the date range of available data for a website

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
websiteIdYesWebsite UUID

Implementation Reference

  • The 'get_daterange' tool handler: registers the tool with the MCP server, defines the schema (websiteId only), and executes the logic by calling GET /api/websites/{websiteId}/daterange via the Umami client.
    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) }] };
      }
    );
  • Input schema for get_daterange: requires a single string parameter 'websiteId' (Website UUID). No output schema defined beyond returning JSON text.
    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) }] };
      }
    );
  • The function registerStatsTools is exported from src/tools/stats.ts and called from src/index.ts (line 30), registering all stats tools including get_daterange on the MCP server.
    export function registerStatsTools(server: McpServer, client: UmamiClient) {
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It does not disclose any behavioral traits beyond the basic purpose (e.g., read-only, auth requirements, rate limits), leaving ambiguities about side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, focused sentence that immediately conveys the core functionality. It contains no extraneous information and is efficiently front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one parameter and no output schema, the description is adequate but could be more informative about the return value (e.g., whether it returns a range object or just min/max dates).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage for the single parameter 'websiteId' with a description 'Website UUID'. The tool description adds no additional meaning beyond what the schema already provides, resulting in a baseline score.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get') and the resource ('date range of available data for a website'). It is specific enough to distinguish from most sibling tools, though it does not explicitly contrast with similar get_* operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when needing the time span of available data, but provides no guidance on when not to use this tool or specific alternatives among many similar get_* tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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