Skip to main content
Glama

get_web_stats

Read-onlyIdempotent

Website analytics for one site (id, data-site id, or domain): visitors, pageviews, sessions, bounce rate, average visit length, custom events, visitors right now, a timeseries, and top values for each breakdown (default page, source, country). range: last_24_hours, today, yesterday, last_7_days, last_30_days, last_90_days, last_365_days, this_month, last_month, this_year, last_year, all_time, custom (custom needs from_date and to_date). breakdowns: page, entry, exit, referrer, source, ai, utm_source, utm_medium, utm_campaign, utm_content, utm_term, country, region, city, device, os, browser, event. filters are ANDed, e.g. [{"dim": "page", "op": "is", "value": "/pricing"}]. compare: previous_period, previous_year, custom (custom needs compare_from and compare_to) adds the same numbers for that period; today compares with yesterday and last_24_hours with the 24 hours before, up to the same time. Event rows have value_sum as value × 100 (4900 = 49.00) with its currency, and conversion (share of visitors).

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>"
    },
    "name": "get_web_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYes
rangeNolast_7_days
compareNo
filtersNo
to_dateNo
from_dateNo
breakdownsNo
compare_toNo
compare_fromNo
breakdown_limitNo
include_timeseriesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral detail annotations cannot carry: compare alignment semantics ("today compares with yesterday and last_24_hours with the 24 hours before, up to the same time") and the event-row encoding (value_sum as value × 100 with currency, plus conversion as share of visitors). It does not disclose pagination/truncation behavior or the shape of the returned payload.

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?

Dense and front-loaded: the tool's purpose and site identifiers come first, then range, breakdowns, filters, compare, and event semantics in logical order. The long parenthetical and semicolon chains make it heavy to parse, but nearly every clause carries unique operational meaning.

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 an 11-parameter analytics tool with no output schema, the description covers almost everything an agent needs to construct a valid call and interpret event rows. The remaining gaps are breakdown_limit and include_timeseries, plus no indication of result size or how breakdown values are ordered/capped.

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 0%, so the description bears full burden and does document most parameters: range values, breakdown dimensions, filter dim/op semantics ('is', 'is_not', 'contains', 'not_contains' are listed only in the schema, though the description does explain that an empty value matches direct traffic), compare modes, and the custom date fields. It never mentions breakdown_limit (default 10, max 25) or include_timeseries (default true), leaving two of eleven parameters with no meaning beyond their schema titles.

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?

Names a specific verb+resource ("Website analytics for one site") and enumerates the exact metrics returned: visitors, pageviews, sessions, bounce rate, average visit length, custom events, visitors right now, timeseries, and top breakdown values. It also states the acceptable site identifiers (id, data-site id, or domain), so an agent can distinguish it from the check/status-page siblings without opening the 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 concrete operating guidance: the full range vocabulary, the constraint that 'custom' requires from_date/to_date, that compare 'custom' requires compare_from/compare_to, and that filters are ANDed with a worked example. What it lacks is any explicit when-not-to-use or comparison against an alternative tool for the same data.

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