Skip to main content
Glama

Read stats

get_stats
Read-only

Event stats (sign-ups, orders… counted with Hooky.track on the site or sent from a server): for each event name, count, total value and a daily series, plus the 20 most recent events (name, value, date). All sites, or one with site_id.

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
toNoEnd date, YYYY-MM-DD.
daysNoThe period, in days (default 30).
fromNoStart date, YYYY-MM-DD (with to, instead of days).
site_idNoOnly this site.
time_zoneNoIANA time zone for the days, e.g. Europe/Paris (the default).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare this a safe, closed-world read, so the bar is lower; the description still adds real context by defining the data source and the full payload shape, including the implicit 20-item cap on recent events. It does not cover auth requirements, rate limits, or empty-result behavior, which keeps it from a 5.

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 that front-loads the resource and the returned fields before the scoping note. Every clause carries information, though the parenthetical about Hooky.track is slightly awkward inside the opening clause.

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 five optional parameters and no output schema, the description usefully compensates by describing the return payload in detail. Remaining gaps are minor — the defaults for date range and the interaction between days and from/to are left to the schema.

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% and each parameter is already documented, so the baseline is 3. The description adds one genuinely new fact — that omitting site_id aggregates across all sites — but says nothing about how days, from/to, or time_zone interact beyond what the schema states.

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 (event stats) and enumerates exactly what is returned: per-event-name count, total value, a daily series, and the 20 most recent events. It also explains how events are produced (Hooky.track on-site or from a server). No sibling tool in the catalog covers analytics, so differentiation isn't needed.

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?

It states the scope choice explicitly ('All sites, or one with site_id'), which tells the agent how to narrow results, but there is no explicit when-to-use framing or mention of prerequisites such as needing tracked events to exist. Usage is implied rather than 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.

Resources