Skip to main content
Glama

attest_inspect_sample

Probabilistic secondary inspection of a record batch (C20: hive-secondary-inspection). Returns a signed inspection record. Reference-grade implementation. Wire format normative; production-grade is Layer B.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seedNoOptional RNG seed for reproducibility
recordsYesRecords to probabilistically inspect
sample_idYesIdentifier for the sample batch
sample_rateNoFraction to inspect (0.0 to 1.0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sample_rate / description
      Previous value: -"Fraction to inspect (0.0–1.0)"New value: +"Fraction to inspect (0.0 to 1.0)"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does add useful behavioral traits: probabilistic selection, returns a signed inspection record, and states 'Wire format normative; production-grade is Layer B'. However, it omits side effects, permissions, or whether it is read-only, which is a gap but not a contradiction.

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?

The description is short (three sentences) and front-loaded with the core action. The first sentence clearly states the purpose, the second gives the return type, and the third adds implementation context. The phrase 'Reference-grade implementation' is somewhat redundant, but overall it is efficient and scannable.

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

Completeness3/5

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

Given the tool's complexity (probabilistic logic, signed output) and no output schema, the description should explain more about the returned inspection record and the inspection process. It mentions 'signed inspection record' but not its structure or any side effects. This is adequate but leaves clear gaps for an agent.

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 baseline is 3. The description does not add extra meaning to parameters (e.g., how sample_rate is used or what records should contain), relying entirely on the schema. No additional semantic value provided beyond the schema.

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 a specific action: 'Probabilistic secondary inspection of a record batch' with a reference code (C20: hive-secondary-inspection). It distinguishes from sibling tools by emphasizing 'secondary inspection' and returning a signed record, which is unique among the attest_* sibling names.

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

Usage Guidelines3/5

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

The description implies usage context by mentioning 'secondary inspection' and 'record batch', but it does not explicitly say when to use this tool versus alternatives like attest_cargo_validate or attest_absence_build. No exclusions or alternative references are provided.

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.