Skip to main content
Glama

ivd_judgment_pair

Capture comparison-pair entries for real-world observational data, recording observed differences and diagnostic hypotheses with competing explanations to build corroborated judgment pairs.

Instructions

Capture a comparison_pair entry — the IVD Judgment alternative to A/B testing for real-world data (Pearl Rung-1: association, not intervention). Each diagnostic_hypothesis MUST list at least one competing_hypothesis. New pairs start at injection_status=plausible; need 2+ independent corroborating pairs to be promoted to corroborated and join the What Works injection layer. Dormant unless .judgment/ exists. (IVD v3.0)

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "domain": "<domain>",
      "run_a": "<run_a>",
      "run_b": "<run_b>",
      "observed_differences": "<observed_differences>",
      "diagnostic_hypotheses": "<diagnostic_hypotheses>"
    },
    "name": "ivd_judgment_pair"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional notes.
run_aYesFirst run: {ref, outcome, inputs, context, metadata}.
run_bYesSecond run: {ref, outcome, inputs, context, metadata}.
domainYesDomain id.
project_rootNoOptional path to repo root.
observed_differencesYesList of concrete differences between run_a and run_b.
diagnostic_hypothesesYesList of {hypothesis, competing_hypotheses (>=1), supporting_evidence?}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.1.2

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the state machine (pairs start at injection_status=plausible, need 2+ corroborating pairs to become corroborated) and the .judgment/ dormancy gate, but says nothing about return value, errors, or whether this is a write/mutating operation.

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?

Front-loads the core action in the first clause and each sentence carries distinct information (framing, validation rule, lifecycle, precondition). The density of internal jargon makes it heavier than necessary but there is no filler.

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?

For a complex nested-object tool with no output schema and no annotations, the description covers the key missing pieces: the required competing_hypothesis constraint, the promotion lifecycle, and the .judgment/ prerequisite. It stops short of describing the successful response, which is the main residual gap.

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 100%, so the schema already documents all seven parameters including nested run_a/run_b and diagnostic_hypotheses shapes. The description's 'MUST list at least one competing_hypothesis' constraint largely restates what the schema already declares (competing_hypotheses >=1), adding little meaning beyond it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Capture a comparison_pair entry' — and frames it as 'the IVD Judgment alternative to A/B testing'. That is a clear purpose, but it doesn't explicitly differentiate from the near-identically named sibling ivd_judgment_capture, and the heavy jargon (Pearl Rung-1, injection layer) adds obscurity.

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?

Provides a critical precondition — 'Dormant unless .judgment/ exists' — and implies usage context via the corroboration lifecycle. However, it never states when to choose this over ivd_judgment_capture or other judgment siblings, so alternative selection is left to inference.

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