Skip to main content
Glama

ScorpTech x402 Tools

Stats Describe

stats_describe
Read-onlyIdempotent

Descriptive statistics for one or many numeric series: count / missing, mean, median, mode, range, sample and population variance / SD, standard error, CV, skewness and excess kurtosis (Excel SKEW / KURT), quartiles, IQR, any percentiles (numpy / PERCENTILE.INC), MAD, geometric and harmonic means, a t confidence interval, Tukey outliers and a histogram (numpy "auto" bins). Several named series also get Pearson and Spearman correlation matrices. Accepts numbers, numeric strings, nulls / "NA" (missing) or objects plus a field name. Returns JSON with: series, correlation. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/stats-describe

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": "stats_describe"
  }
}

Input Schema

NameRequiredDescriptionDefault
binsNoHistogram bins (0 = numpy "auto")
dataYesArray of numbers, an object of named arrays {"a": [...], "b": [...]}, or an array of objects (with "field")
fieldNoField to read when data is an array of objects (several: comma-separated)
outlierKNoTukey fence multiplier (1.5 = outliers, 3 = extreme)
confidenceNo
percentilesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the payment model ($0.002 USDC per successful call, x402 on Base or Solana), an alternate HTTPS endpoint, input coercion rules (numeric strings coerced, nulls/'NA' treated as missing), and the conditional Pearson/Spearman output. Those are exactly the operational facts an agent cannot infer from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, followed by the metric inventory, input modes, return shape, and cost/endpoint. The long metric list is dense but every token specifies real capability; nothing is redundant with the title or schema.

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 six parameters, no output schema, and read-only annotations, the description supplies the return keys ('series, correlation'), the input polymorphism, and the pricing/auth model, which is nearly everything needed to invoke it. It omits practical limits such as maximum series length or behavior when data is empty or all-missing.

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 67%: bins, data, field and outlierK are documented in-schema, while confidence and percentiles are bare. The description compensates by tying percentiles to numpy/PERCENTILE.INC semantics, bins to numpy 'auto', outlierK to Tukey fences, and confidence to the t interval, adding statistical meaning rather than restating types.

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?

Opens with an exact scope statement: 'Descriptive statistics for one or many numeric series,' then enumerates the exact metrics computed, so an agent knows precisely what it gets. It does not name or differentiate against any sibling tool, but the enumerated metric list is specific enough that confusion with the number-theory siblings is unlikely.

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 accepted input shapes (numbers, numeric strings, nulls/'NA', or objects plus a field name) and by the note that correlation matrices only appear for several named series. There is no explicit when-to-use/when-not guidance and no pointer to an alternative for single-value or non-descriptive needs.

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