Skip to main content
Glama

Visitors

get_stats
Read-only

The site's visitors, engaged visitors (who kept a page open fifteen seconds or clicked, scrolled or typed on it), agents, page views and bounce rate (one-page visits never engaged with) over the last days days, the same figures for the same number of days before, visitors and agents by day, the agents by name, its most visited pages, entry pages, sources (a referring host or a link's utm_source), countries (ISO codes) and devices, and what visitors searched the site for and found nothing. A visitor is one browser on one day, counted without cookies. An agent (an AI crawler, an MCP client, or anything reading the site's markdown, llms.txt or .well-known files) is counted the same way and never among the visitors.

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

Input Schema

NameRequiredDescriptionDefault
daysNo1 to 365; 30 if omitted
tokenNoThe site token from create_site or the site's settings. Omit if your Authorization header carries it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / token / description
      Previous value: -"The site token from create_site or the owner page. Omit if your Authorization header carries it."New value: +"The site token from create_site or the site's settings. Omit if your Authorization header carries it."
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already establish that this is a safe read operation, and the description adds useful behavioral and definitional context: visitors are counted by browser/day without cookies, agents are excluded from visitor counts, and data includes a prior-period comparison. It does not discuss response shape, pagination, or auth behavior beyond what the schema provides.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense and most clauses define a metric or counting rule, but it is delivered as one long run-on sentence with limited scanability. The metric list is front-loaded, yet breaking the definitions apart would improve structure without adding length.

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 analytics tool with no output schema, the description is quite complete: it enumerates the returned metric families and defines the less obvious ones such as engaged visitors, bounce rate, visitors, and agents. It still omits practical details like output organization or whether results are grouped or paginated.

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 coverage is 100%, with `days` explicitly documented as 1–365 with a default of 30, so the description does not need to restate it. The description does add that the period also determines the prior comparison window, which is meaningful but not a large expansion beyond the schema.

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 specifies the exact analytics subject: visitors, engaged visitors, agents, page views, bounce rate, comparison-period figures, daily breakdowns, sources, countries, devices, and failed searches. It also clearly separates visitors from agents, so an agent can distinguish this from site-management 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 Guidelines3/5

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

The analytics purpose implies when to use the tool, but there is no explicit guidance on when to choose it over another tool, prerequisites, or exclusions. The description also does not mention any rate limits or data freshness constraints.

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