Skip to main content
Glama
umami-mcp

umami-mcp

by chukycheese

get_stats

Retrieve Umami analytics summary totals for a date range, including visitors, pageviews, visits, bounces, and total time, plus comparison-period figures.

Instructions

Return summary totals for a date range.

Args: website_id: Website id from list_websites. start_at: Range start as an ISO date/datetime or epoch milliseconds. Defaults to days before end_at. end_at: Range end; defaults to now. A bare date includes that whole day. days: Length of the default range when start_at is omitted.

Returns visitors, pageviews, visits, bounces, totaltime (seconds) and the same figures for the comparison period.

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_id": "<website_id>"
    },
    "name": "get_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
end_atNo
start_atNo
website_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose the defaulting rules for start_at, end_at, and days plus the units of totaltime, which is real value, but it leaves out auth/permission requirements and never defines what 'the comparison period' actually is beyond 'the same figures.'

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

Conciseness4/5

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

The lead sentence is front-loaded and the Args block maps cleanly onto the four parameters with no filler. There is minor formatting noise (a stray double space before 'A bare date') and the prose mildly repeats schema defaults, but nothing that costs an agent comprehension.

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?

An output schema exists, so the brief return-field listing is a bonus rather than a requirement, and the parameter semantics are well covered. What holds it at adequate is the undefined comparison-period behavior and the absence of any sibling routing, both of which an agent would need in order to use this confidently alongside get_metrics.

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

Parameters4/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 compensate, and it largely does: all four parameters are given meaning, including accepted formats (ISO date/datetime or epoch milliseconds), default behavior (days back from end_at, end_at defaults to now), and the bare-date day-spanning rule. The only gap is that the string/null shapes and exact defaults the schema encodes are not restated beyond prose.

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 opens with a specific verb and resource: 'Return summary totals for a date range,' and the Args block ties it to a website_id sourced from list_websites. It is clear what the tool does, but it never distinguishes itself from the adjacent get_metrics or get_pageviews siblings, so an agent must infer the boundary.

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: an agent can infer this is the tool for aggregate site totals over a window, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative such as get_metrics. Nothing is misleading, but selection between siblings is left to inference.

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