Skip to main content
Glama

util_distribution

Read-only

Probability distribution calculator — Offline probability distributions: pdf/pmf, cdf, upper tail (sf), two-tailed p, quantiles (inverse cdf), interval probabilities, mean/variance/median, critical values. dist=normal (mean, sd) | t (df) | chi2 (df) | f (df1, df2) | binomial (n, prob) | poisson (lambda) | geometric (prob) | exponential (rate or scale) | uniform (min, max) | lognormal (meanlog, sdlog) | gamma (shape, scale or rate) | beta (a, b). x= one or more values (comma separated, max 50), p= probabilities for quantiles, between=a,b. No x/p gives the 90-99.5% critical values. Matches scipy.stats. 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": {
      "dist": "<dist>"
    },
    "name": "util_distribution"
  }
}

Input Schema

NameRequiredDescriptionDefault
distYesnormal

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the bar is lower. The description still adds real context: it is offline ('Offline probability distributions'), results 'Match scipy.stats' as a correctness anchor, x is capped at 50 values, and there is a stated price of $0.002 USDC via x402 — cost disclosure is genuinely useful. It says nothing about the response shape (scalar vs. array when x is comma-separated), which is the main remaining behavioral gap.

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 identity of the tool, then a compact pipe-delimited distribution/key table, then mode semantics, then the default behavior, then the price. Nearly every clause carries information, though the dense pipe-and-parenthesis notation takes effort to parse and could be laid out in a clearer structure.

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?

There is no output schema, so the description must establish what comes back; it does this at a conceptual level (pdf/pmf, cdf, sf, two-tailed p, quantiles, critical values) and anchors correctness to scipy.stats. What is missing is how results are shaped for multi-value x and whether p is one- or two-sided by default — enough gaps to keep it from a 5 for a tool with this many modes.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although coverage is nominally 100%, the schema is essentially empty — a single 'dist' string property described only as 'normal'. The description carries the entire semantic load, spelling out every distribution's required arguments (t/chi2: df; f: df1,df2; binomial: n,prob; poisson: lambda; exponential/gamma: rate or scale; uniform: min,max) plus the undocumented x, p, and between inputs, their formats, and the 50-value limit.

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?

States a specific resource (probability distribution calculator) and enumerates concrete operations — pdf/pmf, cdf, sf, quantiles, interval probabilities, moments, critical values — so an agent knows exactly what the tool computes. It does not distinguish itself from statistical siblings such as util_chi_square or util_anova, which likely overlap on chi-square/t-distribution work, so the sibling-differentiation part of a 5 is missing.

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?

Explains how to select each mode: 'x=' for density/CDF values, 'p=' for quantiles, 'between=a,b' for interval probabilities, and 'No x/p gives the 90-99.5% critical values' as an explicit default behavior. It gives no guidance on when to prefer this tool over the sibling statistical tools, so it is clear context without 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