Skip to main content
Glama

Visitors

get_stats
Read-only

The site's visitors, agents, page views, bounce rate and visit length 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.

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

B3.4/5.0
Behavior4/5

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

Annotations already declare this is a safe, read-only, non-open-world read. The description goes further by defining non-obvious result semantics: a visitor is one browser on one day counted without cookies, an agent is an AI crawler/MCP client counted the same way and never mixed with visitors. That is real interpretive context the annotations cannot supply. It stops short of describing pagination, caching, or call cost.

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 metric inventory is dense and relevant, but it is delivered as one long run-on sentence that would read far better as a structured list. The two definitional sentences at the end are well-placed, but the front-loaded enumeration is hard to parse.

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?

With no output schema, the description must carry the return-value burden, and it largely does: every metric family and breakdown dimension is named, and the comparison period is disclosed. The only meaningful gap is that it does not indicate result shape (flat object vs. nested series) or how to address the token when omitted.

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%, so both parameters are fully documented there (days range and default, token source), which sets the baseline at 3. The description adds the useful fact that the same metrics are returned for the equivalent prior period, giving meaning to the `days` window — a small but genuine supplement.

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?

The description names a specific resource — the site's analytics — and enumerates the exact figures returned (visitors, agents, page views, bounce rate, visit length, breakdowns by day, pages, sources, countries, devices, failed searches). It is clearly distinguishable from siblings like get_site or search_site, though it never states an explicit verb framing beyond the enumerated metrics.

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 guidance on when to call this versus get_site or any other sibling, and no mention of prerequisites, caching, or cost of the call. The only usage-adjacent information (token optionality) is carried by the input schema, not the description.

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