Skip to main content
Glama

Read statistics

stats_get
Read-onlyIdempotent

Read the usage statistics of your app. Day by day over a period (start_date to end_date, the last 30 days when omitted): downloads, launches, unique_launches, page_views, session_times. Over the whole life of the app, without dates: downloads_all_time, page_views_per_weekday, devices, os_versions (needs platform) and mobile_os_distribution. On this app the figures of a period count every platform together and cannot be split by platform, and page_views_per_weekday cannot be limited to a period: say so instead of answering with another figure. Not here: revenue, the most read content, the number of people a push notification reaches. The answer gives the figures with their dates; a refusal names the argument that does not apply.

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": {
      "metric": "<metric>"
    },
    "name": "stats_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
metricYesThe figure to read. downloads: installations per day. launches: times the app was opened. unique_launches: people who opened it (visitors, active users). page_views: screens viewed. session_times: how long visits last. page_views_per_weekday: page views by day of the week. downloads_all_time: installations since the app exists. devices: installed device models. os_versions: devices per system version of one platform. mobile_os_distribution: iOS and Android shares of the installations.
end_dateNoLast day of the period, as YYYY-MM-DD. Only for the same five figures.
platformNoOnly with os_versions, where it is required: the platform whose system versions to count. Refused with every other figure.
start_dateNoFirst day of the period, as YYYY-MM-DD. Only for downloads, launches, unique_launches, page_views and session_times.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds behavior the annotations cannot convey: the implicit 30-day default window, the fact that period figures are aggregated across all platforms on this app and cannot be split, and that a refusal names the offending argument. It does not describe pagination or volume/limits, but for a statistics read that is a minor omission.

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?

Front-loaded with the core action, then organized by mode (period vs lifetime) followed by exclusions and return behavior. The parenthetical date-window clause is dense but earns its place; a slightly cleaner enumeration of the metric groups would improve scannability, but there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, and the description compensates by stating what the answer contains (the figures with their dates) and what a refusal looks like. Combined with the metric enumeration, the period/lifetime split, and the invalid-argument rules, an agent has everything needed to call this correctly and to explain a failure.

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% and the enum descriptions are detailed, so the baseline is 3. The description still adds meaning beyond the schema: the default date window when start_date/end_date are omitted, and the constraint that the two date parameters are only valid for five of the ten metrics. That is genuine complementary semantics rather than repetition.

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?

States a specific verb and resource ("Read the usage statistics of your app") and then enumerates the exact figures available, split into day-by-day period metrics and lifetime metrics. The closing "Not here: revenue, the most read content, the number of people a push notification reaches" draws the boundary against adjacent tools, so an agent can distinguish it from content_get or push_send without opening any schema.

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

Usage Guidelines5/5

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

Gives explicit selection rules: with start/end dates you get the per-day figures (defaulting to the last 30 days when omitted), without dates you get lifetime figures. It also names which arguments are invalid for which metric (platform only for os_versions, page_views_per_weekday cannot be period-limited) and instructs the agent to refuse rather than substitute another figure.

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.