Skip to main content
Glama

Get headline stats

get_stats
Read-only

Visitors, visits, pageviews, bounce rate and visit duration for a period, compared with the period of the same length just before (change in %).

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_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEnd date YYYY-MM-DD (site timezone), included.
fromNoStart date YYYY-MM-DD (site timezone), with `to`.
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
periodNoA preset period ending today: today, 7d, 30d, 90d, 1y (one year) or all (everything since the site's first visit, five years at most). Default 30d. Ignored when from/to are given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description does add one genuinely useful behavioral trait not in structured data: results are compared against the immediately preceding period of equal length and expressed as a percentage change. It stops short of saying how that comparison is presented in the response or whether it can be suppressed.

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 tight sentence with no filler, front-loading the metric list and appending the comparison rule. It would be stronger if it led with an action verb, but nothing is wasted.

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 no output schema, the description carries the burden of describing return values, and it does list the headline metrics plus the comparison semantics. It omits the response shape, units, and any note that site must be resolved via list_sites, leaving moderate gaps for a four-parameter analytics call.

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%, with each parameter documented including the period enum, date format, timezone, and the note that from/to override period. The description's phrase 'for a period' adds nothing beyond that, so the baseline 3 is appropriate.

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?

Names the specific metrics returned (visitors, visits, pageviews, bounce rate, visit duration) and the comparison basis, so the resource is unambiguous. It is a noun phrase with no verb and gives no differentiation from siblings such as get_overview or get_breakdown, which is the main missing piece.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance and no alternatives are named. A reader must infer from the title 'headline stats' alone that this is the summary tool versus get_overview, get_breakdown, or get_timeseries; nothing in the text tells the agent when this is the right pick or when it is not.

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