Skip to main content
Glama

site_stats

Read-onlyIdempotent

Visit numbers for the last 30 days: visitors, page views, how that compares with the 30 days before, the most read pages, where visitors came from and which countries they were in. Leave site_id out for the totals of every website on the account. Only published websites can have visits. Robots are not counted, and nothing is stored about an individual visitor, so there is no number of visits by one person to give.

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

Input Schema

NameRequiredDescriptionDefault
site_idNoFrom list_sites. Left out, every website is summarised.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the read-only, idempotent, closed-world profile, so the description's job is added context — and it delivers: a fixed 30-day window with a prior-period comparison, a published-sites-only constraint, robot traffic excluded, and an explicit statement that no per-visitor data exists. That last point pre-empts an agent asking for per-person visit counts, which is genuinely useful behavioral information not present in structured fields.

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?

Front-loaded with the return contents, then scoping, then constraints — a sensible order with no filler sentences. The metrics list is dense and comma-chained, but every item is a real return value rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must carry the return contract, and it does by enumerating each reported metric plus the comparison period. For a single optional-parameter read tool with full annotation coverage, nothing an agent needs to invoke it correctly is missing.

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 100% and the schema already says the parameter comes from list_sites and that omitting it summarises every website, so baseline is 3. The description adds marginal meaning by tying site_id omission to account-level totals and by noting that unpublished sites cannot have visits, which affects what a valid site_id will return.

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?

The description names the resource and enumerates exactly what comes back: visitors, page views, prior-30-day comparison, most read pages, referrer sources and visitor countries. No sibling tool (create_site, publish_site, get_page, list_sites) overlaps this analytics read, so an agent can route here without opening a 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?

It gives a clear selection rule for the only decision that matters: include site_id for one site, omit it for account-wide totals. It also states a real precondition ('Only published websites can have visits'), which tells the agent when the tool will return nothing useful. It stops short of naming an alternative tool, but there is no plausible competing sibling to name.

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.