Skip to main content
Glama

util_stats

Read-only

Descriptive statistics + regression — Descriptive statistics for a list of numbers: count, sum, mean, median, mode, min/max, range, sample and population variance/stdev, coefficient of variation, standard error, 95% t-interval for the mean, geometric mean, quartiles/IQR, percentiles, skewness, excess kurtosis (Excel SKEW/KURT definitions), Tukey outliers and a histogram. Add y= (same count) for Pearson r, R squared, Spearman rho and least-squares regression with slope t-stat and p-value. Params: data= comma-separated numbers (required, max 20000); optional y=, p= percentile list (e.g. 10,50,90), bins=. Offline, instant. Price: $0.002 USDC (Base, via x402).

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": {
      "data": "<data>"
    },
    "name": "util_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes2,4,4,4,5,5,7,9

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds real value beyond that with the 20,000-point input cap, the requirement that y match the data count, the specific statistical definitions used (Excel SKEW/KURT, Tukey outliers, 95% t-interval), and the paid x402 access model. The 'Offline, instant' claim sits slightly at odds with a billed network endpoint, but it isn't a safety contradiction.

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 long but front-loaded: what it computes first, the regression mode second, then a compact Params line and pricing. The exhaustive statistic list is dense yet it is the main selection signal, so it earns its space; only the parenthetical definitional asides are borderline filler.

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 single-required-parameter, no-output-schema tool with annotations already carrying the safety profile, this covers the essentials: inputs, limits, activation condition for regression, and cost. It does not describe the response shape (field names/units) or behavior on malformed input such as odd counts or non-numeric tokens, which would matter for a stats tool.

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% but the schema only declares 'data' (with a bare example string), while the description documents the actual calling conventions: comma-separated numbers, max 20000, and three further optional parameters (y= with matching count, p= percentile list with an example '10,50,90', bins=) that do not appear in the schema at all. This compensating detail is genuinely useful, though y/p/bins get no format or default specifics beyond brief parentheticals.

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?

The description opens with a concrete verb+resource ('Descriptive statistics for a list of numbers') and then enumerates the exact statistics computed, plus the regression extension triggered by y=. That specificity makes it trivially distinguishable from generic siblings like util_calc, so an agent knows precisely what it will get.

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 a clear conditional rule for the regression mode ('Add y= (same count) for Pearson r, R squared, Spearman rho...'), plus constraints (max 20000), latency ('instant'), and a cost/auth prerequisite ($0.002 USDC via x402 on Base). It stops short of naming when to prefer a different sibling, so it is strong context without explicit exclusions.

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