Skip to main content
Glama

eDiscovery Decoder News/Calc

Validate Sample Design

validate_sample_design
Read-onlyIdempotent

QC a TAR validation sampling plan: check whether it has the documented elements needed for a defensibility discussion (population, sample size, confidence level, sampling frame/method, randomization, etc.) and flag what is missing or inconsistent. Use to sanity-check a sampling protocol before relying on it. Reviews metadata only — not a legal sufficiency opinion.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
random_seedNo
sample_sizeYes
generated_atNo
sampling_frameNo
margin_of_errorNo
population_sizeYes
sampling_methodNo
confidence_levelNo
excluded_population_sizeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
issuesYes
statusYes
summaryYes

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare read-only and non-destructive; description adds scope limitation ('reviews metadata only — not a legal sufficiency opinion'), 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.

Conciseness5/5

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

Three concise sentences, each adding value: purpose, usage, and scope limitation. Front-loaded and no wasted words.

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?

Covers purpose, usage, and scope well. Missing explicit connection between listed elements and input parameters, but output schema exists and complexity is moderate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so description must explain parameters. It lists elements checked but does not map to specific parameters like random_seed or excluded_population_size, leaving gaps for an agent.

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 clearly states it 'QC a TAR validation sampling plan' and checks for documented elements like population, sample size, confidence level, etc., distinguishing it from sibling tools like calculate_sample_size.

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?

Explicitly says 'Use to sanity-check a sampling protocol before relying on it' and clarifies it reviews metadata only, not a legal opinion. No explicit alternatives, but context is clear.

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