Skip to main content
Glama
matious89pl

umami-analytics-mcp

by matious89pl

Get session stats

get_session_stats
Read-only

Summarize session metrics (pageviews, visitors, visits, countries, events) for any date range using filters like URL, referrer, device, or location.

Instructions

Aggregate session totals over a date range: pageviews, visitors, visits, countries, events — a session-centric overview.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
osNo
tagNo
urlNo
cityNo
hostNo
endAtNoExplicit end — ISO 8601, YYYY-MM-DD, or epoch milliseconds. Defaults to now.
eventNo
queryNo
rangeNoRelative window: "24h", "7d", "30d", "12w", "today", "yesterday", "this-week", "last-month", "this-year". Ignored when startAt/endAt are set. Default "7d".
titleNo
deviceNo
regionNo
browserNo
countryNo
startAtNoExplicit start — ISO 8601, YYYY-MM-DD, or epoch milliseconds. Overrides range.
languageNo
referrerNo
websiteIdYesUmami website UUID (obtain from list_websites).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
endAtYes
statsNo
startAtYes
websiteIdYes
Behavior3/5

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

Annotations already declare readOnlyHint=true. The description adds no extra behavioral context such as rate limits, required permissions, or data scope. It merely restates the aggregate nature, which is already implied by the tool name and annotations.

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?

Single sentence, front-loaded with key info, no wasted words. The structure is efficient for quick comprehension.

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

Completeness2/5

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

Despite an output schema existing, the description omits important context like how parameters affect aggregation, relationship to sibling tools (e.g., get_pageviews vs get_session_stats), and any limitations. With 18 parameters and many siblings, the description is too brief to fully guide the agent.

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?

The input schema has 18 parameters with only 22% description coverage. The description does not explain any filtering parameters (e.g., os, url, browser) or how they combine. This forces the agent to rely solely on parameter names without additional semantic guidance.

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

Purpose5/5

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

The description clearly states the verb 'aggregate' and the resource 'session totals', listing specific metrics (pageviews, visitors, visits, countries, events) and emphasizing 'session-centric overview'. This distinguishes it from sibling tools like get_pageviews or get_stats.

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?

No explicit guidance on when to use this tool versus alternatives like get_pageviews or get_realtime. The description implies a session-level aggregate use case, but does not state exclusions or compare with siblings, leaving the agent to infer.

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/matious89pl/umami-analytics-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server