Skip to main content
Glama
santismm

santismm-knowledge

Official

Calculate an agent evaluation sample size

calculate_evaluation_sample_size
Read-onlyIdempotent

Calculate how many evaluations are needed to detect at least one failure and to estimate its failure rate within a chosen margin, using failure rate, confidence, margin, and population.

Instructions

Calculate two different samples: how many independent evaluations are needed to detect at least one failure, and how many are needed to estimate its rate at a chosen margin. Use this when a user asks how many tests are enough; do not interpret zero observed failures as proof of zero risk.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNoLanguage for interpretations, assumptions, formulas and warnings (default en).
marginYesMargin for estimating the failure rate, in percentage points.
confidenceYesConfidence level, in percent.
populationYesNumber of distinct evaluable cases.
failureRateYesFailure rate to detect, in percent.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYes
unitsYes
inputsYes
sourceYes
api_urlYes
licenseYes
resultsYes
updatedYes
versionYes
formulasYes
languageYes
warningsYes
assumptionsYes
canonical_urlYesCite this URL.
interpretationYes
schema_versionYes
methodology_urlYes
Install Server

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds meaningful behavioral context by explaining the dual outputs and warning against misinterpreting zero failures as proof of zero risk. This goes beyond what annotations alone communicate.

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 three sentences with no filler. It front-loads the core purpose, gives usage context, and adds a valuable statistical caution. Every sentence contributes to correct tool selection and invocation.

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?

With a rich output schema, complete input schema, and strong annotations, the description provides all necessary context: what the tool computes, when to reach for it, and a critical interpretation warning. Nothing material is missing for an agent to invoke it correctly.

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 schema fully documents all five parameters. The description mentions 'margin' and 'failure rate' conceptually and explains why the parameters matter, but it does not add formatting, units, or relationship details beyond the schema. Baseline 3 is appropriate.

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 action ('Calculate two different samples') and identifies exactly what is calculated: sample size to detect at least one failure and sample size to estimate its rate. It clearly distinguishes this from the surrounding retrieval tools by focusing on statistical calculation for evaluation sample sizing.

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?

The description gives explicit guidance: 'Use this when a user asks how many tests are enough.' It also includes a non-obvious interpretive caution about zero observed failures. However, it does not name alternative tools or explicitly state when not to use it, so it stops short of full exclusion guidance.

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

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/santismm/santismm-knowledge-mcp'

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