Skip to main content
Glama
nbrain-dicom-sr-ihe-air

nbrain-dicom-sr-ihe-air

validate_ihe_air_sr

Audit DICOMweb Structured Report JSON against IHE AI Results patient-safety rules and DICOM TID 1500 invariants to catch compliance issues before downstream exchange.

Instructions

Audit a DICOMweb Structured Report JSON against IHE AI Results (AIR) patient-safety rules and DICOM TID 1500 invariants.

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": {
      "sr_json": "<sr_json>"
    },
    "name": "validate_ihe_air_sr"
  }
}

Input Schema

NameRequiredDescriptionDefault
sr_jsonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavior burden. It does disclose the substantive checks performed (AIR patient-safety rules and TID 1500 invariants) and the audit framing implies a non-mutating read, but it says nothing about the outcome — whether failures raise errors, return a violation list, or are merely reported — nor about permissions or limits.

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?

One front-loaded sentence that names the action, the input, and the two rule sets being enforced, with no filler wording. Nothing could be removed without losing scope information.

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?

For a single-parameter validation tool with no output schema and no annotations, the description identifies the domain checks but omits the most decision-relevant detail: what the agent gets back and how to interpret a failure. Adequate to select the tool, insufficient to know what to do with its result.

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% for the single sr_json object parameter, so the description must compensate. It does clarify that the input should be a DICOMweb Structured Report JSON rather than arbitrary JSON, which is genuine added meaning, but it gives no guidance on expected structure, required TID 1500 sections, or tolerance for partial reports.

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 uses a specific verb (audit) and resource (DICOMweb Structured Report JSON) and pins the scope to named standards (IHE AIR patient-safety rules, DICOM TID 1500 invariants), which implicitly separates it from the sibling build_ihe_air_tid1500_sr that constructs rather than checks reports. It stops short of explicitly contrasting itself with any sibling, so a 4 rather than a 5.

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?

Usage is only implied: 'audit ... against rules' suggests this is a post-construction or pre-submission check, and an agent can infer it should run after build_ihe_air_tid1500_sr. There is no explicit when-to-use, no when-not-to-use, and no named alternative (e.g., UID validation or FHIR translation) to route against.

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