Skip to main content
Glama

Compare two CORE runs

sdtm_diff_runs
Read-onlyIdempotent

Compare two SDTM validation runs to identify fixed, new, and unchanged issues per rule, helping track fix-loop progress and confirm when no issues remain.

Instructions

Issues fixed, new and unchanged between two validation runs, per rule. 'progress' tells a fix loop whether it is getting anywhere; 'clean' says nothing is left.

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": {
      "before_run_id": "<before_run_id>",
      "after_run_id": "<after_run_id>"
    },
    "name": "sdtm_diff_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
after_run_idYes
before_run_idYes

Output Schema

NameRequiredDescriptionDefault
newYes
cleanYesTrue when the after-run has no issues.
fixedYes
by_ruleYes
summaryYesOne or two sentence plain-language answer.
findingsNo
progressYesTrue when issues went down. Stop a fix loop when false twice running.
after_runYes
citationsYes
unchangedYes
before_runYes
disclaimerNoDecision support only. Verify against the current guideline and your site SOPs.
provenanceYes
assumptionsNo
rules_not_comparedNoRules run in only one of the two runs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and repeatability are covered. The description adds conceptual behavior beyond that: the diff is categorized per rule and the result carries interpretive status semantics ('progress' vs 'clean'). It does not address failure modes — mismatched rule sets between runs, nonexistent run IDs, or what happens when the runs are not comparable — which matters for a tool that takes two opaque identifiers.

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?

Two tight sentences with no filler, and the payoff — what the diff is for — is front-loaded rather than buried. The phrasing is telegraphic and quote-heavy ('progress', 'clean'), but nothing is wasted.

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?

An output schema exists and full annotations are present, so return structure and safety profile do not need re-explaining; the description correctly focuses on what the comparison means. For a two-parameter read-only tool, the remaining gap (identifier expectations and non-comparable input handling) is modest but real.

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 0%, so the two string parameters carry no documented meaning from the schema. The description partially compensates: 'fixed' vs 'new' only makes sense with directional ordering, which implicitly establishes that before_run_id is the baseline and after_run_id is the comparison point. It never states that ordering explicitly, nor what identifier format is expected or whether both runs must come from the same rule set.

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?

The description names a specific operation on a specific resource: a per-rule diff of two validation runs, broken into fixed / new / unchanged. Combined with the title 'Compare two CORE runs' and the sibling set (get_run, core_status), an agent can tell this is the two-run comparative tool. It stops short of naming what it is not, so it is clear but not sibling-routed.

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 clause "'progress' tells a fix loop whether it is getting anywhere" implies the primary use case — checking iteration during a remediation loop — and "'clean' says nothing is left" implies the terminating condition. There is no explicit when-not guidance or statement about which sibling to use for single-run inspection instead. Usage is inferable but not prescribed.

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