Skip to main content
Glama

probability.chi_square_ppf

Read-onlyIdempotent

Calculate the chi-square quantile (inverse CDF) for a given probability and degrees of freedom, returning a rounded decimal value; use q=1−α to find a significance-level critical value.

Instructions

카이제곱분포의 분위수를 구한다. q 는 0 초과 1 미만, df(자유도)는 양수 십진 문자열이며 scipy float64 계산 후 유효숫자 10자리로 반올림한 문자열을 반환한다. 유의수준 α 의 임계값은 q 에 1-α 를 넣는다.

Input Schema

NameRequiredDescriptionDefault
qYes
dfYes

Output Schema

NameRequiredDescriptionDefault
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/closed-world, and the description adds real behavioral detail beyond them: the underlying scipy float64 computation and the 10-significant-digit rounding of the returned string. It omits what happens with out-of-domain input (rejection vs. error), which is the main remaining gap.

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?

Three sentences, no filler, and the core purpose comes first followed by parameter constraints and then the practical α hint. Every sentence carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter numeric routine with an output schema already documenting return shape, the description covers purpose, both parameter domains, numeric precision, and the canonical statistical use case. Nothing an agent needs in order to call it correctly is 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 description coverage is 0%, so the description carries the full burden and does so: q is constrained to (0,1), df is a positive decimal, both are strings, and the α-to-1-α mapping clarifies the intent of q. The 'decimal string' format expectation for df is stated, though precision/format rules for q are only implied.

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 states a specific verb and resource ('computes the quantile of the chi-square distribution'), which is self-differentiating from the sibling cdf/pdf variants and from other distributions' ppf tools. An agent can identify the operation without opening the schema.

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 concrete usage guidance by explaining that the critical value for significance level α is obtained by passing 1-α as q, which is the main point of confusion for ppf callers. It does not, however, state when this tool should be chosen over the cdf sibling or the related f_ppf/normal_ppf tools.

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

Deploy Server

Other Tools