Skip to main content
Glama

Lookup Kit

stats

Read-only

Statistics calculator: mean, median, mode, standard deviation, quartiles. Statistics for a list of numbers (comma or space separated, up to 10,000): count, sum, mean, median, mode, min, max, range, sample and population standard deviation and variance, quartiles. Exact decimal arithmetic. Price: $0.001 per call (x402, USDC on Base).

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": {
      "numbers": "<numbers>"
    },
    "name": "stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
numbersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: exact decimal arithmetic (no float drift) and a per-call price of $0.001 via x402/USDC on Base, which is a real operational constraint an agent must know before invoking. It does not say what happens on malformed input or how results are formatted.

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 lead sentence front-loads the purpose well, but the statistic list is then repeated almost verbatim in the second sentence, costing space without adding information. The pricing note is correctly placed at the end as a secondary constraint. Overall efficient but with noticeable duplication.

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 usefully doubles as a return-value specification by enumerating every statistic produced. Input capacity and payment terms are both stated. The remaining gap is error/failure behavior for invalid numeric input, which is a modest omission for a stateless calculator.

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?

There is a single parameter and the schema has no description for it (0% coverage), so the description must carry the burden. It does explain the expected encoding (comma or space separated) and the 10,000-item ceiling, which meaningfully supplements the bare maxLength/minLength constraints. Format details such as tolerance for blank entries, negatives, or scientific notation are unaddressed.

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 verb+resource ('Statistics calculator') and enumerates the exact computations performed (count, sum, mean, median, mode, min, max, range, sample/population stdev and variance, quartiles). This is far more specific than a title restatement. It stops short of distinguishing itself from the sibling 'text_stats', so an agent must infer that this one takes numbers rather than text.

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?

Usage is implied by the input contract: hand it a list of numbers, comma or space separated, up to 10,000. There is no explicit statement of when to prefer this over 'text_stats' or any other sibling, and no exclusions or prerequisite conditions beyond the implicit input format.

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