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

nbrain-dicom-sr-ihe-air

translate_dicom_sr_to_fhir_r4

Converts IHE AIR TID 1500 DICOM structured reports into HL7 FHIR R4 transaction bundles with ImagingStudy, Device, Observations, and preliminary DiagnosticReport resources.

Instructions

Translate an IHE AIR TID 1500 DICOMweb Structured Report into an HL7 FHIR R4 transaction Bundle (ImagingStudy + Device + Observations + preliminary DiagnosticReport).

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": "translate_dicom_sr_to_fhir_r4"
  }
}

Input Schema

NameRequiredDescriptionDefault
sr_jsonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/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 real value by naming the exact resource set emitted and flagging the DiagnosticReport as 'preliminary', but it never says whether this is a pure in-memory transform or persists anything, how invalid/non-TID-1500 input is handled, or whether output is deterministic.

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 with zero filler: verb, input format, output format, and output contents in that order. Nothing is repeated and nothing extraneous is included.

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 one-parameter transform with no annotations and no output schema, the description adequately covers both ends of the contract (input standard, output Bundle composition). The remaining gap is failure behavior and side-effect profile, which is meaningful but secondary for a conversion utility.

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 a single required nested object, so the schema documents nothing. The description partially compensates by specifying the expected payload is a TID 1500 DICOMweb SR, but it gives no guidance on the JSON structure, required sections, or whether raw DICOMweb response wrappers are accepted.

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?

States a specific verb ('Translate') with an exact source standard ('IHE AIR TID 1500 DICOMweb Structured Report') and exact target ('HL7 FHIR R4 transaction Bundle'), then enumerates the produced resources. This is unmistakably a conversion tool and cannot be confused with the sibling validate/build tools.

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 by the purpose: an agent can infer it is the step taken after building/validating an SR when FHIR output is needed. There is no explicit when-to-use statement, no prerequisites (e.g., validate first), and no named alternative or exclusion.

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