Skip to main content
Glama

get_stats

Read-onlyIdempotent

Get headline analytics. total_transactions and monthly_transactions count every payment request created, including unpaid and expired ones (list_payments shows each status). volume_by_currency is lifetime completed volume per currency the payments were started in, never converted: report these figures. total_volume_fiat is the same volume as one USD figure. There is no monthly volume figure. unique_customers counts distinct customer emails saved on payments. An email is optional, so 0 or a low number is normal, not a fault.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

The description adds substantial semantic context beyond the annotations: total_transactions and monthly_transactions include unpaid and expired payment requests, volume_by_currency is lifetime completed volume in the original currency with no conversion, total_volume_fiat is a single USD figure, there is no monthly volume figure, and unique_customers can legitimately be low because email is optional. These caveats are exactly the kind of behavioral detail an agent needs to avoid misinterpreting the stats.

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 description is front-loaded with its purpose and then systematically explains the important metric semantics. It is dense but not bloated; each sentence carries a caveat or definition that helps prevent misinterpretation.

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 and no parameters, the description carries the burden of explaining what the returned metrics mean, and it does so for the key fields. It is nearly complete for a no-argument stats tool, though it does not discuss account scope or authentication requirements.

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?

The tool has zero parameters, so there are no parameter semantics to explain. The baseline score of 4 applies, and the description appropriately does not waste space on nonexistent inputs.

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 states a specific verb and resource ('Get headline analytics') and then names the key metrics returned. It also distinguishes the tool from list_payments for per-payment status detail, though 'headline analytics' alone is broad.

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

Usage Guidelines4/5

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

It gives clear context for using the tool as a summary analytics endpoint and explicitly points to list_payments when individual payment statuses are needed. It does not exhaustively compare against all siblings such as get_account or list_plans, but the main alternative is named.

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