Skip to main content
Glama

Show breakdown chart

show_breakdown_chart
Read-onlyIdempotent

Shows a ranked bar chart for one dimension (channel, referrer, utmSource, utmCampaign, page, entryPage, country, device, browser, os) with visitors and revenue for one website and period.

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": "show_breakdown_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD (inclusive).
fromNoFirst day, YYYY-MM-DD (inclusive). Use with to.
sortNoRank by visitors (default) or revenue.
limitNoRows to show (1–20, default 10).
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.
timezoneNoIANA time zone for day boundaries and grouping, e.g. Europe/Madrid. Default UTC.
dimensionYesWhat to rank.
website_idNoWebsite ID from list_websites (the data-site-id value in the tracking script).

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 readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds useful context that the output is a ranked bar chart rather than raw rows, but says nothing about output format, rendering behavior, or what happens with empty data — modest value beyond the annotations.

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 well-formed sentence with the scope constraint front-loaded and no filler. The parenthetical list of ten dimensions duplicates the schema enum, which is slight waste but aids quick scanning.

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?

With nine parameters, full schema coverage and rich annotations, most of what an agent needs is available. The description still leaves the tool's relationship to the data-returning siblings (get_breakdown, show_traffic_chart) unspecified, which matters for correct tool selection in this catalog.

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 all nine parameters are already documented in the schema, including enums, defaults, ranges and the from/to vs period interaction. The description only restates the dimension enum and the general scope, adding no semantics the schema doesn't already carry; baseline 3 applies.

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 gives a specific verb and resource ('Shows a ranked bar chart'), enumerates the ten rankable dimensions, and states the metrics (visitors and revenue) plus scope (one website and period). It does not distinguish itself from the sibling get_breakdown or show_traffic_chart, so an agent cannot tell from this text whether it wants a rendered chart or raw breakdown data.

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: 'shows a chart' suggests a visualization use case, and the 'one dimension'/'one website and period' framing constrains scope. It never says when to prefer this over get_breakdown or show_traffic_chart, nor any prerequisites such as needing a website_id from list_websites.

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