Skip to main content
Glama

Show traffic chart

show_traffic_chart
Read-onlyIdempotent

Shows an interactive chart of daily visitors and revenue for one website and period, with visitors, revenue, conversion rate, bounce rate, the change against the previous period and the top channels.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "show_traffic_chart"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoLast day, YYYY-MM-DD (inclusive).
fromNoFirst day, YYYY-MM-DD (inclusive). Use with to.
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.
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

A3.5/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the description need not repeat them. It adds meaningful context about what the response contains — the specific metrics, the period-over-period change, and top channels — which matters since no output schema exists. It says nothing about chart rendering expectations, rate limits, or behavior when no data exists in the window.

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 or repetition. The trailing metric enumeration is long but each item earns its place by describing chart contents absent an output schema. Slightly run-on, but efficient overall.

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?

With six all-optional parameters and no output schema, the description needs to convey roughly what comes back, and listing the displayed metrics does that. The complex compare/period/timezone interactions are fully documented in the schema, so no duplication is required. Only marginal gaps remain: empty-data behavior and whether results are chart-only or accompanied by numbers.

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% and the parameter docs are unusually rich (period presets with timezone behavior, compare modes, website_id provenance), so the schema carries the semantics. The description contributes only the scoping phrase 'one website and period' and adds no syntax or format detail beyond it. 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?

States a specific verb and resource — 'Shows an interactive chart' — and pins down scope: daily visitors and revenue for one website and period. The metric list (visitors, revenue, conversion rate, bounce rate, change vs previous period, top channels) makes the output recognizable. It stops short of naming a sibling like get_traffic or show_breakdown_chart to sharpen the boundary.

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 implied rather than stated: 'interactive chart' suggests a visual/aggregate view as opposed to raw data, but the description never says when to pick this over get_traffic or show_breakdown_chart. No prerequisites, exclusions, or alternative routing are given, leaving the agent to infer from sibling names alone.

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