Skip to main content
Glama

Simple Analytics MCP by usefulapi

Get top pages, referrers, countries or devices

simpleanalytics_get_breakdown
Read-only

Top values of one dimension for one website and date range, each with pageviews and visitors: pages, countries, referrers, UTM sources/mediums/campaigns/contents/terms, browsers, operating systems or device types. Optional filters as in simpleanalytics_get_stats. Stats API: GET /.json?fields=.

Input Schema

NameRequiredDescriptionDefault
endNoEnd date (inclusive): YYYY-MM-DD, today, yesterday or today-1d. Default: today.
pageNoOnly this page path, e.g. /pricing. A trailing * matches a prefix (/blog/*).
limitNoMaximum number of values (default 20, max 1000).
pagesNoOnly these page paths, comma separated (/contact,/product/*).
startNoStart date: YYYY-MM-DD, today, yesterday or today-30d. Default: 1 month ago.
countryNoOnly this country, 2-letter code (NL).
os_nameNoOnly this OS name (iOS).
hostnameYesWebsite hostname as shown in Simple Analytics, e.g. example.com (from simpleanalytics_list_websites).
metadataNoExact metadata filters as {key: value}; all must match.
referrerNoOnly this referrer (normalized, e.g. google.com).
timezoneNoIANA time zone, e.g. Europe/Amsterdam. Default: the website setting.
utm_termNoOnly this UTM term.
dimensionYesWhat to break the traffic down by.
utm_mediumNoOnly this UTM medium.
utm_sourceNoOnly this UTM source.
device_typeNoOnly this device type.
utm_contentNoOnly this UTM content.
browser_nameNoOnly this browser name (Chrome).
utm_campaignNoOnly this UTM campaign.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description goes further by disclosing what each result row contains (pageviews and visitors per dimension value) and mapping the call to the underlying Stats API GET endpoint. It does not mention ordering, pagination beyond the schema's limit, or rate limits, so it is helpful but not exhaustive.

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?

Two dense but well-ordered sentences: purpose and dimension list first, filter pointer and endpoint second. The raw endpoint string ('GET /<hostname>.json?fields=<dimension>') is the least valuable clause for an agent but it is short and confirms the dimension-to-field mapping.

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

Completeness5/5

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

For a 19-parameter tool with no output schema, the description covers the essential unknowns: what is being broken down, the full set of valid dimensions, that results carry pageviews/visitors, and where filter semantics live. Remaining details (defaults, formats, limits) are fully documented in the schema.

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

Parameters3/5

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

Schema description coverage is 100% across 19 parameters, including enum values for dimension and device_type, so the schema carries the parameter burden. The description only reinforces the dimension choices and defers filter semantics to simpleanalytics_get_stats, adding little beyond the schema; baseline 3 applies.

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?

Names a precise operation (return top values of one dimension for one website and date range) and enumerates every dimension value the tool accepts. It also states the shape of each returned row (pageviews and visitors), which is a specific, non-tautological claim about the resource.

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 implied rather than stated: 'top values of one dimension' signals an aggregation/breakdown call, and it points at simpleanalytics_get_stats for filter semantics. However, it never says when to pick this over get_stats, get_timeseries or get_events, and gives no exclusions or prerequisites.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.