Skip to main content
Glama

PageLens Analytics

get_breakdown

Read-only

Top values of one dimension (pages, entry/exit pages, referrers, channels, UTM tags, countries, cities, browsers, OS, devices, languages, custom events, outbound links) with visitors and sessions.

Input Schema

NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD, inclusive (default today)
fromNoStart date YYYY-MM-DD (overrides period)
limitNoRows to return (default 10)
periodNoTime range (default 7d)
searchNoOnly values containing this text
filtersNoOptional filters "dimension:value" (is). Other operators go after the dimension: "page!:/x" is not, "page~:blog" contains, "page!~:blog" does not contain, "page^:/docs" starts with. Dimensions: page, title, hostname, referrer, channel, utm_source, utm_medium, utm_campaign, browser, os, device, screen, country (ISO code), city, language, event, tag
site_idYesSite id from list_sites
timezoneNoIANA timezone for days and hours, e.g. Europe/Berlin (default UTC)
dimensionYes
segment_idNoApply a saved segment (see list_segments); combines with filters

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this as a safe, read-only, non-destructive query, so the safety profile is covered. The description adds that results come back as ranked values with visitor and session counts, a useful hint about shape, but says nothing about limit defaults, ordering, or empty-result behavior.

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?

A single front-loaded sentence with no filler. The long parenthetical dimension list is slightly heavy but earns its place by enumerating supported dimensions.

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?

No output schema exists, so the description carries the burden of describing returns; it only gestures at 'visitors and sessions' without stating the row shape or ordering. Combined with 90% schema coverage on inputs, this is adequate but not fully complete for a 10-parameter tool.

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 90%, so the schema itself documents parameters such as from/to, period, limit, filters, and timezone thoroughly. The description contributes no additional parameter meaning, which is the correct baseline when the schema does the heavy lifting.

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?

States a specific verb (top values of one dimension) and enumerates the supported dimensions, so the resource is unambiguous. It does not differentiate itself from siblings like get_pages or get_events, which cover overlapping ground, so it stops short of a 5.

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 agent can infer it is the tool for ranked dimension breakdowns, but there is no explicit when-to-use guidance and no mention of when to prefer get_pages, get_events, or get_overview instead. Adequate but with a clear gap.

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.

Resources