Skip to main content
Glama
Umami MCP

Umami MCP

by kennethreitz

get_stats

Read-only

Retrieves pageviews, visitors, visits, bounces, and total time for a date range, comparing each metric against the previous equal-length period.

Instructions

Pageviews, visitors, visits, bounces, and total time for a date range.

Each number is compared with the previous period of the same length. website is an id, name, or domain. date_range accepts today, 7d, 30d, this month, or ISO dates. timezone is an IANA name; the default is America/New_York unless UMAMI_TIMEZONE is set.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "website": "<website>"
    },
    "name": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
osNo
pathNo
eventNo
deviceNo
browserNo
countryNo
websiteYes
referrerNo
timezoneNo
date_rangeNo7d

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered; the description adds genuinely new behavior: every number is compared against the previous period of equal length, and timezone defaults to America/New_York unless UMAMI_TIMEZONE is set. That default-with-env-override detail is the kind of thing an agent cannot get from the schema. It does not explain that the optional filter parameters segment the reported numbers, which is the main remaining behavioral gap.

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?

Front-loaded with the returned metrics, then the period-comparison behavior, then compact clarifications for the three ambiguous parameters. Every sentence earns its place and there is no filler or restatement of the name.

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 10-parameter tool with zero schema description coverage and no output schema, the definition covers the return metrics and the three highest-risk parameters adequately. It is not complete: the seven segmentation filters are unexplained, including whether they can be combined and how they affect the reported numbers. An agent could call it correctly for the basic case but would be guessing on any filtered query.

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?

Schema description coverage is 0%, so the description must carry the load. It does well for three parameters: website accepts an id, name, or domain; date_range accepts today, 7d, 30d, this month, or ISO dates; timezone is an IANA name with a stated default. But seven filter parameters (os, path, event, device, browser, country, referrer) get no mention at all, so their meaning and accepted values remain undocumented in both schema and description.

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?

Opens with a specific verb-less but precise statement of what is returned: pageviews, visitors, visits, bounces, and total time for a date range. An agent can tell this is an aggregate summary endpoint rather than a per-page or per-event listing. It stops short of naming how it differs from siblings like get_metrics or get_pageviews, so it is clear but not sibling-differentiated.

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?

Usage is only implied: the mention of a date range and period-over-period comparison suggests 'use this for high-level traffic trends.' There is no explicit when-to-use, when-not-to-use, or pointer to get_metrics / get_pageviews / get_events as alternatives. The agent must infer routing from the metric list alone.

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