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

nbrain-dicom-sr-ihe-air

validate_or_mint_dicom_uid

Validate an existing DICOM UID against PS3.5 rules or deterministically mint a 2.25 UUID-derived UID from a seed, ensuring compliant identifiers for reports and FHIR bundles.

Instructions

Validate an existing DICOM UID (PS3.5 <=64 chars, no leading zeros) or deterministically mint a 2.25. UID from a seed.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_or_mint_dicom_uid"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidNo
seedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/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 behavioral burden. It does add real value by disclosing the validation rules (<=64 chars, no leading zeros) and the determinism guarantee of minting, but it says nothing about the outcome of a failed validation, whether an exception or a status value is returned, or how a malformed seed is handled.

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?

A single sentence, front-loaded with the primary verb and carrying the format and validation constraints as inline parentheticals. Nothing is padded and no sentence needs rereading.

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 two-parameter, no-annotation, no-output-schema tool this is close to sufficient: input meaning, validation constraints, and output shape are all covered. The remaining gap is the return contract for failures and the both/neither-input case, which matters more here because no output schema exists to fill it in.

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 description must compensate for both parameters, and it does assign each a role: uid is the value under validation, seed is the deterministic UUIDv5 input. However, it never states that the two are alternative modes, that both are optional, or what happens if both or neither are passed — the most consequential ambiguity given required=0.

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?

The description states two concrete verbs and the resource precisely: validate an existing DICOM UID or deterministically mint one. It even names the normative rule set (PS3.5) and the exact output form (2.25.<UUIDv5-int>), so an agent knows exactly what the tool produces without opening any schema.

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

Usage Guidelines4/5

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

The dual-mode framing implicitly tells the agent which input drives which behavior (pass a uid to validate, pass a seed to mint), which is the key usage decision here. It stops short of explicit guidance on mutually exclusive inputs or what to do when neither is supplied, and names no alternatives, but the sibling tools are unrelated so this omission costs little.

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