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

nbrain-dicom-sr-ihe-air

build_ihe_air_tid1500_sr

Converts AI pathology findings or cephalometric measurements into a DICOMweb PS3.18 JSON Structured Report (TID 1500/IHE AI Results AIR) with AI provenance.

Instructions

Build a DICOMweb PS3.18 JSON Structured Report (TID 1500 & IHE AI Results AIR) from AI pathology findings and/or cephalometric measurements.

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": {
      "patient_id": "<patient_id>",
      "study_instance_uid": "<study_instance_uid>",
      "referenced_series_uid": "<referenced_series_uid>",
      "referenced_sop_uid": "<referenced_sop_uid>",
      "algorithm_name": "<algorithm_name>",
      "algorithm_version": "<algorithm_version>"
    },
    "name": "build_ihe_air_tid1500_sr"
  }
}

Input Schema

NameRequiredDescriptionDefault
findingsNo
patient_idYes
measurementsNo
algorithm_nameYes
algorithm_versionYes
referenced_sop_uidYes
study_instance_uidYes
referenced_series_uidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and does not meet it. It is ambiguous whether the tool only assembles and returns JSON or also persists/uploads to a DICOMweb endpoint — a critical distinction for an agent deciding whether calling it is safe. Nothing is said about what happens when optional arrays are omitted, whether output is validated, or what errors arise from malformed UIDs.

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?

One sentence, front-loaded with the verb and the output artifact, with zero filler. It is efficient rather than bloated; the shortfall is under-specification, not verbosity.

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

Completeness2/5

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

For an 8-parameter, 6-required builder with no annotations, no output schema, and no schema descriptions, this single sentence is not enough. An agent knows what artifact results but not how to populate the required identifiers, what the finding/measurement objects look like, or whether the result is returned or written.

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 description coverage is 0% across 8 parameters, so the description must compensate and largely does not. It hints that findings and measurements are the payload arrays, but says nothing about patient_id, study/series/SOP UIDs, or algorithm_name/algorithm_version, nor about the expected shape of the nested finding and measurement objects — the single biggest source of invocation error here.

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 ("Build") and a precise resource ("DICOMweb PS3.18 JSON Structured Report"), and names the standards it conforms to (TID 1500, IHE AI Results AIR) plus the two input domains. This is far more than a restatement of the name. It stops short of a 5 because it never contrasts itself with validate_ihe_air_sr or translate_dicom_sr_to_fhir_r4, leaving the agent to infer the boundary from names alone.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus the sibling validators/translators, no stated prerequisite that a produced SR should later be run through validate_ihe_air_sr, and no mention of which input combinations are valid ("and/or" implies findings-only, measurements-only, or both, but no rules are given). Usage must be guessed entirely from the tool name and sentence.

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