Skip to main content
Glama

Get top values

get_breakdown
Read-only

Top values of one dimension, by visitors. "total" means pageviews for pathname, occurrences for event, and visits for every other dimension. Dimensions: pathname (pages), entry_page, source, referrer_host, utm_source, utm_medium, utm_campaign, country (ISO code), device, browser, os, event (custom events), hostname (the domain a visit began on, for a site measured on several, e.g. example.com and app.example.com), host_pathname and host_entry_page (pages written with their domain). With filter, only the visits that match it (one dimension of the visit): "where did the visits from Substack land?" is dimension entry_page with filter source = Substack; that answer also gives matching_visits, what those visits brought (goals reached, sales) and, by entry page, what each page brought.

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": {
      "site": "<site>",
      "dimension": "<dimension>"
    },
    "name": "get_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD (site timezone), included.
fromNoStart date YYYY-MM-DD (site timezone), with `to`.
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
limitNoDefault 10.
filterNoOnly the visits whose dimension has this value, read by their first event (one filter, never more). E.g. the entry pages of the visits from Substack: dimension entry_page, filter { dimension: source, value: Substack }.
periodNoA preset period ending today: today, 7d, 30d, 90d, 1y (one year) or all (everything since the site's first visit, five years at most). Default 30d. Ignored when from/to are given.
dimensionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / dimension / enum
      Previous value: -[
      -  "pathname",
      -  "entry_page",
      -  "source",
      -  "utm_campaign",
      -  "utm_medium",
      -  "country",
      -  "device",
      -  "browser",
      -  "os",
      -  "event",
      -  "referrer_host",
      -  "utm_source"
      -]New value: +[
      +  "pathname",
      +  "entry_page",
      +  "source",
      +  "utm_campaign",
      +  "utm_medium",
      +  "country",
      +  "device",
      +  "browser",
      +  "os",
      +  "event",
      +  "hostname",
      +  "referrer_host",
      +  "utm_source",
      +  "host_pathname",
      +  "host_entry_page"
      +]
    • addedInput schema / properties / filter
      Added value: +{
      +  "description": "Only the visits whose dimension has this value, read by their first event (one filter, never more). E.g. the entry pages of the visits from Substack: dimension entry_page, filter { dimension: source, value: Substack }.",
      +  "properties": {
      +    "dimension": {
      +      "enum": [
      +        "source",
      +        "utm_source",
      +        "utm_medium",
      +        "utm_campaign",
      +        "entry_page",
      +        "hostname",
      +        "country",
      +        "device"
      +      ],
      +      "type": "string"
      +    },
      +    "value": {
      +      "description": "The value as get_breakdown gives it: \"Substack\", \"Direct\", \"/pricing\", \"app.example.com\", \"FR\"…",
      +      "maxLength": 500,
      +      "minLength": 1,
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "dimension",
      +    "value"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description does add real behavioral context beyond that: 'total' means pageviews for pathname, occurrences for event, visits for everything else, that filtering also yields matching_visits, and that 'all' caps at five years. It still says nothing about result ordering, pagination interplay with limit, or whether empty breakdowns return empty arrays.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first sentence, but the dimension list largely duplicates the schema enum, with only a few entries earning their parentheses. The closing sentence is a long run-on that chains the filter example, matching_visits, and per-entry-page results together, which makes it harder to parse than necessary.

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

Completeness4/5

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

For a seven-parameter tool with a nested filter object and no output schema, the description covers the hard parts: dimension semantics, the single-filter constraint, the meaning of 'total', and a bonus matching_visits payload. What it omits (default limit behavior, sorting of the top values, response shape) is mostly recoverable from the schema entries, so the definition is largely self-sufficient.

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 coverage is 86%, so the schema already documents most parameters and the baseline is 3. The description adds genuine meaning on top: it glosses dimensions (country as ISO code, hostname as the domain a visit began on, host_pathname as domain-qualified pages) and explains the filter as 'the visits whose dimension has this value, read by their first event'. That is more than restating the enum, but the limit and date parameters are left entirely to the schema.

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 clause names a specific verb and resource: 'Top values of one dimension, by visitors', then enumerates the valid dimensions and what 'total' counts for each. An agent immediately knows this is a ranked-value breakdown tool. It never explicitly contrasts itself with siblings such as get_series or get_stats, so it falls short of the sibling-differentiating 5.

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

Usage Guidelines4/5

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

Usage is conveyed through a concrete worked question ('where did the visits from Substack land?') mapped to dimension entry_page plus filter source = Substack, which teaches the intended pattern better than a generic rule. It also clarifies that 'total' changes meaning across dimension types. There is no explicit when-not or named-alternative guidance, so it is clear context rather than full routing.

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