Skip to main content
Glama

Site stats

site_stats
Read-onlyIdempotent

Summary stats for one site: top_pages (visits per page, last 30 days), visits, clicks (clicks to merchants), clicks_by_merchant, or top_products (most clicked). Totals only, never single 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_id": "<site_id>",
      "report": "<report>"
    },
    "name": "site_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
lengthNoNumber of periods, ending now. Default 30.
periodNoSize of each period, for visits and clicks. Default day.
reportYes
site_idYesThe site id from list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and non-open-world, so the safety profile is covered. The description adds genuinely new behavior: results are aggregate totals only, never individual visitors, and it discloses the time scope for top_pages. It stops short of describing ordering, pagination, or empty-result behavior.

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 dense sentence plus a short scope constraint, front-loaded with the resource and then the report enumeration. Every clause carries information, though 'last 30 days' attached to top_pages risks being read as fixed rather than as a default overridable by length/period.

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 four-parameter, no-output-schema tool, the description effectively documents the return shape by mapping each report value to its metric. What remains missing is modest: result ordering, response size behavior, and confirmation that period/length govern only the visits and clicks reports.

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 75%, and the report enum has no schema description, so the description carries real weight by defining each of the five report values. The 'last 30 days' phrasing hints at the length/period defaults but does not explain how length and period interact or that period applies only to visits and clicks.

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 the resource (summary stats for one site) and enumerates the five report types with what each measures, so the agent knows exactly what dimension of data comes back. It does not name or distinguish itself from the nearest sibling, site_overview, which is the one ambiguity an agent would still face.

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: aggregates for a single site, explicitly 'totals only, never single visitors,' which usefully rules out per-visitor analysis. There is no statement of when to prefer this over site_overview or the content-listing siblings, and no prerequisites such as needing site_id from list_sites (that hint lives only in the schema).

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.