Skip to main content
Glama

probability.binomial_cdf

Read-onlyIdempotent

Calculate the binomial cumulative probability P(X ≤ k) for n trials and success probability p, returning a rounded decimal result.

Instructions

이항분포의 누적확률 P(X ≤ k; n, p)를 구한다. k 와 n 은 0 이상 정수(k ≤ n), p 는 [0, 1] 구간 십진 문자열이며 scipy float64 계산 후 유효숫자 10자리로 반올림한 문자열을 반환한다. 'k 회 이상'은 1 - cdf(k-1)로 구해야 하며 cdf(k)는 'k 회 이하'다.

Input Schema

NameRequiredDescriptionDefault
kYes
nYes
pYes

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.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, closed-world), and the description adds substantial non-structured behavior: computation via scipy float64, results rounded to 10 significant digits, and the return value delivered as a string rather than a number. That string-return disclosure is operationally important and appears nowhere in the schema or annotations.

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, front-loaded with the definition, then constraints, then the boundary-interpretation caveat. No filler; every clause carries either a constraint or a behavioral fact the agent needs.

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 3-required-parameter numeric tool with an output schema, this covers everything an agent needs: domain constraints on all inputs, the input encoding for p, the rounding behavior of the result, and the directional semantics that most often cause misuse. Nothing material is left to inference.

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?

Schema description coverage is 0%, so the description must carry all parameter meaning — and it does: k and n are non-negative integers with the k ≤ n constraint, and p is a decimal string in [0, 1]. This is critical because the schema types p as a bare 'string' with no format hint; the description supplies the required encoding.

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?

States a precise verb+resource with the exact formula notation: '이항분포의 누적확률 P(X ≤ k; n, p)를 구한다'. This unambiguously distinguishes it from probability.binomial_pmf (mass, not cumulative) and from the other distribution CDF tools in the sibling list.

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 interpretation guidance: 'k 회 이상'은 1 - cdf(k-1)로 구해야 하며 cdf(k)는 'k 회 이하'다 — directly resolving the most common off-by-one ambiguity for CDF calls. It does not name binomial_pmf as the alternative for exact-P(X=k) queries, so it stops short of explicit sibling routing.

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