Skip to main content
Glama
Umami MCP

Umami MCP

by kennethreitz

get_pageviews

Read-only

Retrieve website pageviews and sessions over time with configurable granularity (minute to year) and filters like path, country, device, browser, OS, referrer, and event.

Instructions

Pageviews and sessions over time.

unit is minute, hour, day, month, or year. When omitted, a short range uses hours and a longer one uses days or months. See get_stats for website, date_range, and timezone.

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

Input Schema

NameRequiredDescriptionDefault
osNo
pathNo
unitNo
eventNo
deviceNo
browserNo
countryNo
websiteYes
referrerNo
timezoneNo
date_rangeNo7d

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and openWorldHint, so safety is covered, and the description adds real value with the unit-defaulting rule (hours for short ranges, days/months for longer ones). It says nothing about the shape of the returned series, granularity limits, or whether filters combine with AND semantics, which matters for an 11-parameter analytics 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?

Three short lines, front-loaded with the core purpose and no filler. The cross-reference to get_stats is efficient, though relying on a sibling's text to define this tool's own required-parameter formats is a structural weakness rather than verbosity.

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?

With no output schema and no annotation coverage of semantics, the description needs to do heavy lifting for an 11-parameter tool and instead documents roughly one parameter inline plus three by reference. An agent could call it, but only by guessing at filter syntax and value formats.

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

Parameters2/5

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

Schema description coverage is 0% across 11 parameters, so the description carries the full burden and largely fails it: it explains only 'unit' and outsources 'website', 'date_range', and 'timezone' to another tool's description. The seven filter parameters (os, path, event, device, browser, country, referrer) are left with no indication of match semantics, accepted value formats, or whether multiple values are allowed.

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 names the resource and shape of the result ('Pageviews and sessions over time'), which is more specific than a bare name restatement and implicitly separates it from the aggregate get_stats. It stops short of explicitly stating how it differs from get_metrics or get_events, so an agent must infer the time-series role.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no alternative is named for the time-series vs. aggregate choice. The only routing hint ('See get_stats for website, date_range, and timezone') is about parameter documentation, not about selecting this tool over a sibling.

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