Skip to main content
Glama

Get Dimension Traffic Breakdown

get_breakdown
Read-onlyIdempotent

Groups clean site traffic by one selected dimension, such as source, device, country, UTM tags, entry/exit pages, goals, or downloads, to return ranked breakdowns for analysis.

Instructions

Group clean site traffic by one selected dimension (referrers, AI referrals, UTM tags, devices, geo, entry/exit pages, goals, or downloads). Use when slicing by a single attribute; for per-page engagement stats, use get_pages_funnel. Read-only via read token; capped by limit.

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_id": "<site_id>"
    },
    "name": "get_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
dimNoTraffic dimension to group by (default "source").source
limitNoMaximum ranked breakdown rows to return (default 20).
periodNoLookback window relative to now (default "7d").7d
site_idYesPrismUV site slug identifier (e.g. "prismuv-abc123") returned by list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.1.1
    • addedInput schema / properties / dim / default
      Added value: +"source"
    • addedInput schema / properties / dim / description
      Added value: +"Traffic dimension to group by (default \"source\")."
    • addedInput schema / properties / limit / default
      Added value: +20
    • addedInput schema / properties / limit / description
      Added value: +"Maximum ranked breakdown rows to return (default 20)."
    • addedInput schema / properties / limit / maximum
      Added value: +100
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / period / default
      Added value: +"7d"
    • addedInput schema / properties / period / description
      Added value: +"Lookback window relative to now (default \"7d\")."
    • addedInput schema / properties / site_id / description
      Added value: +"PrismUV site slug identifier (e.g. \"prismuv-abc123\") returned by list_sites."
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the description is not carrying the safety burden alone. It still adds real context beyond them: the data is 'clean' traffic, access requires a read token, and results are capped by limit. It stops short of describing whether rows are ranked, sorted, or include totals.

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?

Two tight sentences: purpose and dimension scope first, then the disambiguation and the operational constraints. Every clause carries information; nothing is repeated from the title or schema.

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 4-parameter read-only aggregation tool with full schema coverage and rich annotations, the description covers what it does, how to choose it, and the main operational limits. The only gap is return shape (ranked rows, metrics included), which matters somewhat because no output schema exists.

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%, so every parameter including the 20-value dim enum and the 1-100 limit range is already documented. The description only restates that grouping is by a single dimension and that output is capped by limit, adding no format or defaulting nuance beyond the schema. Baseline 3 is appropriate.

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?

States a specific verb ('Group') and resource ('clean site traffic') plus the operation's shape ('by one selected dimension'), then enumerates the concrete dimension families (referrers, AI referrals, UTM tags, devices, geo, entry/exit pages, goals, downloads). It also names the sibling it is not (get_pages_funnel), so an agent can distinguish it without opening either schema.

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?

Gives an explicit selection rule ('Use when slicing by a single attribute') and routes the per-page-engagement case to get_pages_funnel. It does not state when this tool is the wrong choice for time-series or quality questions, so guidance is clear but not exhaustive.

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