Skip to main content
Glama

Site visit analytics

site_visits
Read-onlyIdempotent

Returns owner-only human HTML page views and daily unique visitors for a slug. Inputs: slug, optional from and to as YYYY-MM-DD (default the plan window: 7 days on Free, 30 on Hobby, 90 on Pro), and token. Bots, empty or script user agents, headless browsers, and assets are not page views. A longer range returns plan_required with an upgrade link. No raw IP and no full user agent are stored. The same numbers are on https://deed.page/analytics?slug= with the owner token.

Input Schema

NameRequiredDescriptionDefault
toNoLast UTC day, YYYY-MM-DD. Default is today.
fromNoFirst UTC day, YYYY-MM-DD. Default is the plan window ending at to.
slugYesSlug you own.
tokenNoBearer token returned by your first publish (deed_tok_...). Optional if the MCP client sends Authorization: Bearer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the safety bar is met. Beyond that the description discloses real behavior the annotations don't: the bot/headless/asset filter, the plan-gated range limits and the plan_required response with upgrade link, and the privacy posture (no raw IP or full user agent stored).

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?

The lead sentence front-loads what is returned and the key scope constraint; the remaining sentences are dense but each carries distinct information (filter rules, plan gate, privacy, dashboard equivalent). Slightly list-like but no wasted sentences.

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 read-only analytics call with full schema coverage and no output schema, the description covers defaults, filtering semantics, the plan-limit error path, and privacy. The main gap is that the return shape ('daily unique visitors') is only loosely sketched, but that is minor given annotations already establish the operation's safety profile.

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%, so baseline is 3, but the description adds meaning beyond the schema: the concrete plan window durations (7/30/90 days) that the schema only alludes to as 'the plan window', plus the token's header fallback. This is genuine added value rather than repetition.

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 a specific verb (returns) and resource (human HTML page views and daily unique visitors for a slug) with scope qualifiers (owner-only, excludes bots/assets). It does not distinguish itself from the sibling site_analytics, which sounds closely related, so an agent cannot tell the two apart from the description alone.

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?

It mentions owner-only access and the plan-linked error case, but gives no guidance on when to use this versus site_analytics or the other analytics-adjacent siblings. No exclusions, prerequisites, or alternative routing are stated.

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.