Skip to main content
Glama

eDiscovery Decoder News/Calc

Calculate Control Set Recall

calculate_control_set_recall
Read-onlyIdempotent

Calculate recall against a known control set: the share of documents already confirmed relevant that the workflow found, with a Wilson confidence interval. Use when you have relevant-found and relevant-missed counts from a fixed reference set. For recall from a confusion matrix use calculate_review_metrics; from a discard-set sample use calculate_tar_recall_estimate. Aggregate counts only; not legal advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
relevant_foundYes
relevant_missedYes
confidence_levelNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
recallYes
formulaYes
relevantFoundYes
totalRelevantYes
relevantMissedYes
confidenceLevelYes
confidenceIntervalYes

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. Description adds context: it calculates a Wilson confidence interval, works with aggregate counts, and is not legal advice. No contradictions.

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?

Four sentences with clear front-loading: purpose, usage condition, alternatives, disclaimer. No unnecessary words. Could be slightly more structured but efficient.

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 the statistical nature and presence of an output schema, the description adequately covers purpose, inputs, and usage boundaries. Missing details like output structure are covered by the schema. Assumptions and formula are not essential for tool selection.

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 coverage is 0%; description compensates by explaining parameters are counts from a fixed reference set and mentions confidence_level implicitly via Wilson interval. However, it does not explicitly describe each parameter's format or default values beyond schema properties.

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?

Description specifies exact function: 'Calculate recall against a known control set' with details about computing the share of confirmed relevant documents found and Wilson confidence interval. It explicitly distinguishes from sibling tools like calculate_review_metrics and calculate_tar_recall_estimate.

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

Usage Guidelines5/5

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

Explicit when to use: 'Use when you have relevant-found and relevant-missed counts from a fixed reference set.' Provides exclusions with named alternatives for confusion matrix and discard-set sample contexts. Includes disclaimer 'not legal advice.'

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose, with descriptions explicitly differentiating similar-sounding ones (e.g., calculate_control_set_recall vs calculate_review_metrics vs calculate_tar_recall_estimate). No ambiguity in tool selection.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case (calculate_*, get_*, list_*, etc.), making them predictable and easy to understand.

Tool Count5/5

15 tools cover the server's domain—eDiscovery calculations, news, and utilities—without feeling excessive or insufficient. Each tool earns its place.

Completeness5/5

The tool set provides a thorough surface for eDiscovery calculations (recall, elusion, prevalence, sample size) and news, plus supporting utilities (demo guide, capability listing, health check). No obvious gaps for the stated purpose.

Resources