Skip to main content
Glama

Breakdown by dimension

get_breakdown
Read-onlyIdempotent

Complete ranked table for one dimension (channel, referrer, utmSource, page, entryPage, country, city, browser, device, language, screenSize, exitPage (visits that ended on a page; revenue = payments whose last page before paying was it), urlParam (needs param), outbound, …) with visitors, pageviews, first-touch revenue and payments, payingVisitors (the row's period visitors who paid in the period) and purchaseRate (payingVisitors ÷ visitors × 100, null under 10 visitors). Sort by purchaseRate to find what converts best. Supports search, sorting and paging. For pages: avgTime, exits and exitRate per row; attribution=viewed credits every page a buyer viewed before their first payment (buyers, revenue, purchaseRate = buyerVisitors ÷ visitors, the row's period visitors who are those buyers, ≤ 100; rows don't add up to total revenue, totals has the distinct buyers); group=folder rolls pages up by folder (folder=/blog/ to drill in).

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

Input Schema

NameRequiredDescriptionDefault
qNoOnly rows containing this text.
toNoLast day, YYYY-MM-DD (inclusive).
fromNoFirst day, YYYY-MM-DD (inclusive). Use with to.
sortNo
groupNodimension page only: folder rolls pages up by folder.
limitNoRows to return (1–100).
orderNoSort direction (default desc).
paramNoURL parameter name, required with dimension urlParam (one of the site's kept parameters).
fieldsNoOptional: only these parts of the answer, as comma-separated dot paths (e.g. overview.current,series.date,series.visitors). Through a list a path applies to every item; period is always kept. An unknown top-level name fails with the list of valid ones. Leave out for the full answer.
folderNoWith group=folder: the folder to list, e.g. /blog/ (default /).
offsetNo
periodNoPreset period, default 30d. today/yesterday/wtd/mtd follow the timezone. Ignored when from and to are set.
compareNoWhat change figures compare against: previous (default, the equal-length window right before), weekdays (the same length, starting whole weeks earlier on the same weekday, so Mondays compare with Mondays), year (same period last year), or a YYYY-MM-DD start (window keeps the period's length). Ignored for period all.
filtersNoUp to six visitor filters, all of which must match. op: is, is_not (exact); contains, not_contains, starts_with, ends_with (literal text, letter case ignored); regex, not_regex (case-insensitive regular expressions up to 200 characters, without lookarounds, backreferences or repeated groups like (a+)+); is_empty, is_not_empty (no values: send []; e.g. utmCampaign is_empty = visitors who never had a campaign); gt, lt and is for visits. dim urlParam also needs key, the URL parameter name (one of the site's kept parameters): {"dim":"urlParam","key":"plan","op":"is","values":["pro"]}. dim prop (event property) needs key, the property name, and optionally goal to look only at that goal's events; values match as text (numbers and true/false too), and a visitor matches with at least one such event: {"dim":"prop","key":"plan","goal":"signup","op":"is","values":["growth"]} (list_event_properties lists names and values). dim trait needs key, a person's identify trait (get_visitor_traits lists them): {"dim":"trait","key":"role","op":"is","values":["founder"]}. Other dimensions take no key or goal. A 400 filter_too_slow means the regex was too slow: simplify it.
includeNoComma list. speed: add LCP/INP/CLS/FCP/TTFB percentiles per page; errors: add errors per page row (visitors who hit a JavaScript error there, nonBuyers of them who didn't pay, occurrences) while JavaScript errors are on in Settings. page and entryPage only.
timezoneNoIANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC.
dimensionYes
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).
attributionNodimension page only: first_touch (default, revenue to the landing page) or viewed (every page buyers viewed before their first payment).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the read-only annotations, the description discloses important behavioral caveats: purchaseRate is null under 10 visitors, attribution=viewed changes buyer counts and purchaseRate semantics, viewed-revenue rows do not add to total revenue, and totals carries distinct buyers. These details materially affect interpretation of results.

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 content is front-loaded and largely relevant, but it is delivered as a dense run-on paragraph with nested parentheticals that is hard to scan. The length is somewhat justified by tool complexity, yet bullet-like separation would make it much clearer.

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 complex 19-parameter tool with no output schema, the description covers the main dimension semantics, returned metrics, attribution caveats, and grouping behavior. It leaves some secondary parameters such as compare, filters, fields, and timezone to the schema, which is acceptable given their rich schema descriptions.

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

Parameters4/5

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

Schema coverage is already high at 84%, but the description adds real meaning for key parameters: it defines exitPage, says urlParam needs param, explains attribution values, and describes group=folder with folder. It does not cover every parameter, but it substantially improves the enum semantics.

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 description states a specific output ('Complete ranked table for one dimension') and enumerates dimensions and core metrics, so the resource is clear. It does not explicitly contrast itself with sibling tools such as show_breakdown_chart, so it falls short of full sibling differentiation.

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?

It offers a concrete usage hint ('Sort by purchaseRate to find what converts best') and notes that group=folder drills into pages, but it never states when to choose this tool over chart or traffic alternatives. The when-not and alternative-selection guidance are absent.

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