Skip to main content
Glama
matious89pl

umami-analytics-mcp

by matious89pl

Get metric breakdown

get_metrics
Read-only

Retrieves ranked breakdown of website metrics by dimension (pages, referrers, events, etc.) over a date range. Returns top values with counts, supporting filters like search, url, and country.

Instructions

Top-N breakdown of a website by a single dimension (type) over a date range. Returns ranked { x: value, y: count } rows. Use type=event for custom-event counts. url is an alias for path.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
osNo
tagNo
urlNo
cityNo
hostNo
typeYesDimension to break down by.
endAtNoExplicit end — ISO 8601, YYYY-MM-DD, or epoch milliseconds. Defaults to now.
eventNo
limitNoMax rows (default 50).
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
searchNoSubstring filter on the dimension value.
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
dataYes
typeYes
countYes
websiteIdYes
Behavior3/5

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

Annotations already indicate readOnlyHint=true. The description adds that it returns ranked {x, y} rows and is a top-N breakdown. No contradictions, but lacks details on default limit, pagination, or ordering beyond schema.

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?

Very concise: two sentences that convey core functionality without redundancy. Could benefit from a brief explanation of filter parameters but remains efficient.

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?

Given 21 parameters and no explanation of most filters, the description leaves significant gaps. The return format is covered by the output schema, but the agent cannot infer how to use dimensions vs filters. More context is needed for a tool this complex.

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 coverage is only 33%, and the description only explains the 'type' parameter (with enum hints) and 'url' as alias. The remaining 18+ parameters (filters like os, browser, etc.) are not explained, leaving the agent to guess their role.

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?

Clearly states it provides a top-N breakdown by a single dimension over a date range, with specific mentions of type=event and url=path. Distinguishes from siblings like get_stats (aggregate) and report_breakdown (multi-dimension), though not explicitly.

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?

No explicit when-to-use or when-not-to-use guidance. The description hints at usage for custom events and alias but does not differentiate from many sibling tools like get_website_values or report_breakdown.

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