Skip to main content
Glama
umami-mcp

umami-mcp

by chukycheese

get_pageviews

Retrieves pageviews and sessions as a time series for a Umami website, letting you chart traffic trends across custom ranges and minute-to-year buckets.

Instructions

Return pageviews and sessions as a time series.

Args: website_id: Website id from list_websites. start_at: Range start (ISO date/datetime or epoch milliseconds). end_at: Range end; defaults to now. days: Length of the default range when start_at is omitted. unit: Bucket size: minute, hour, day, month or year.

Returns {"unit": ..., "pageviews": [{"x": bucket, "y": count}, ...], "sessions": [...]}.

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_pageviews"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo
unitNoday
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.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the full disclosure burden. It does add real behavior: end_at defaults to now, days governs the default range only when start_at is omitted, and the response shape is spelled out with the unit echoed back. It says nothing about permissions, rate limits, maximum range size, or data retention, which are the gaps an agent would hit on a large query.

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?

Purpose is front-loaded in one sentence, followed by a compact Args block and a Returns line. Every line carries information; the only minor redundancy is restating the return shape when an output schema already exists.

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

Completeness4/5

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

For a five-parameter read tool with no annotations and no schema descriptions, the definition covers purpose, every parameter, defaults, and response structure, which is enough for an agent to call it correctly. It falls short of complete only on operational boundaries such as permissions, maximum range, and pagination for large series.

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 coverage is 0%, so the description must compensate and largely does: it documents all five parameters, including that start_at accepts ISO date/datetime or epoch milliseconds, and it enumerates the unit values (minute, hour, day, month, year) that the schema leaves as a bare string with no enum. The only soft spot is website_id, whose expected format is given only indirectly via the list_websites reference.

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 first line gives a specific verb and resource: 'Return pageviews and sessions as a time series.' That is far more precise than a restated name, and the 'time series' framing separates it from scalar summary tools. It stops short of naming which sibling to prefer (get_stats, get_metrics, get_active_visitors), so it does not fully disambiguate within the family.

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 'website_id: Website id from `list_websites`' note establishes a useful prerequisite chain, and the days/start_at interaction ('days: Length of the default range when start_at is omitted') clarifies how the range defaults work. There is no when-to-use versus a sibling, and no stated exclusions or limits.

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