Skip to main content
Glama

MaCalculatriceEnLigne

Calculate Confidence Interval

calculate_confidence_interval
Read-onlyIdempotent

Compute confidence interval for a sample mean. Use for statistics, A/B test results, or polling. Inputs: mean, std dev, sample size, confidence (90/95/99%). Returns CI lower/upper bounds. See list_bundles for related 'math' calculators.

Input Schema

NameRequiredDescriptionDefault
std_devYesStandard deviation
confidenceNoConfidence level95
sample_meanYesSample mean
sample_sizeYesSample size

Output Schema

NameRequiredDescriptionDefault
resultNoComputed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools).
sourceNoAuthoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21").
formulaNoHuman-readable formula or method used (e.g. "I=P·r·t", "Magnus formula").
reference_urlNoLink to a calcul2 page documenting the calculation in detail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile needs no restating. The description adds only that output consists of CI lower/upper bounds, which the existing output schema already covers, so there is little behavioral value beyond 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.

Conciseness4/5

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

Front-loaded with the core purpose, then usage, inputs, and output in compact order with no filler sentences. The trailing cross-reference to list_bundles is mildly tangential but still short and potentially useful for discovery.

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 four-parameter, fully documented calculator with an output schema, the description covers purpose, context, inputs, and output adequately. The return-value sentence is redundant with the output schema, but nothing essential is missing.

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 every parameter is already documented. The description's input list (mean, std dev, sample size, confidence 90/95/99%) merely mirrors the schema, including the enum values, adding no format, unit, or constraint detail beyond it.

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 verb and resource ('Compute confidence interval for a sample mean'), which is clearly distinct from neighbors like calculate_statistics or calculate_sample_size. It doesn't explicitly name which sibling to use instead, so it stops short of a 5.

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?

Gives concrete usage contexts ('statistics, A/B test results, or polling'), which is clear positive guidance. It offers no exclusions or named alternatives despite a very dense calculator sibling set, so it does not reach the explicit when/when-not bar of a 5.

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.