Skip to main content
Glama

distribution_operation

Perform probability distribution calculations: compute PDF, CDF, quantile, mean, variance, or draw samples from supported distributions.

Instructions

Probability distribution operations: PDF, CDF, quantile, mean, variance, sampling

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNoNumber of samples (for sample operation)
xNoPoint for pdf/cdf/quantile evaluation
sessionNoNamed workspace to use. Workspaces have independent variables; omit for 'default'.default
operationYesOne of: pdf, cdf, quantile, mean, variance, sample
parametersYesDistribution parameters (e.g. [0, 1] for standard normal)
distributionYesDistribution name: normal, exponential, poisson, chi_squared, student_t, uniform, beta, gamma

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description carries full burden for disclosing behavioral traits. It merely lists operations without mentioning side effects, session requirements, or output behavior. There is no statement about whether this is a read-only computation or if it modifies any state.

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?

The description is a single, concise sentence that front-loads the core purpose and lists all supported operations. There is no wasted wording, and it is easily skimmable for an agent.

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?

Given that an output schema exists and the input schema fully documents all parameters (including distribution names and operation values), the description is mostly complete for tool selection and invocation. It lacks explicit mention of how to combine operations with parameters, but the schema covers this. Minor ambiguity around 'quantile' (needs probability vs x) is acceptable.

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?

Schema description coverage is 100%, so the baseline is 3. The description does not add additional meaning beyond the schema; it restates operation names that are already enumerated in the operation parameter. It does not clarify relationships like x being needed for pdf/cdf/quantile and n for sampling, but the schema descriptions already cover these roles.

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 clearly identifies the tool as handling probability distribution operations, listing specific operations (PDF, CDF, quantile, mean, variance, sampling). This distinguishes it from sibling tools that focus on algebra, calculus, or other math domains. However, it lacks a strong verb like 'compute' or 'evaluate', instead using the nominal 'operations'.

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

Usage Guidelines2/5

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

The description provides no explicit guidance on when to use this tool versus alternatives like statistics_summary or calculate_expression. It lists the operations but does not give context about which distribution or scenario warrants this tool. Usage is only implied by the tool's name and sibling context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/XBP-Europe/sagemath-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server