Skip to main content
Glama
rt-imaging-mcp

rt-imaging-mcp

by MLwithDyy

Summarise an RT structure set

rt_structure_summary
Read-onlyIdempotent

Summarizes an RTSTRUCT file into one PHI-safe entry per structure, reporting interpreted type, contour and slice counts, extent in mm, and approximate planar-contour volume.

Instructions

Summarise an RTSTRUCT file (path relative to the root): one entry per structure.

Structure names are returned only when they match a standard name (TG-263 style); other names are redacted. Returns interpreted type, contour and slice counts, extent in mm and an approximate planar-contour volume. No coordinates or free-text labels.

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": {
      "path": "<path>"
    },
    "name": "rt_structure_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the description's added value is the disclosure that non-standard structure names are redacted and that no coordinates or free-text labels are exposed. That privacy/redaction behaviour is the key non-obvious trait and it is stated explicitly.

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?

Three tight sentences, front-loaded with purpose and followed by the redaction caveat and the returned fields; nothing superfluous, though the line break mid-sentence is slightly awkward.

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?

With an output schema present, the description need not enumerate return values, yet it still flags the one thing an agent must know when interpreting results (non-standard names are redacted). Only the path format/root definition is left thin.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single 'path' parameter, so the description must carry the meaning, and it does: the path is relative to the root. It gives no example format or root definition, which keeps it short of a 5.

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 and resource ('Summarise an RTSTRUCT file') plus the unit of output ('one entry per structure'), which cleanly separates it from siblings such as rt_dose_summary, rt_plan_summary and rt_dvh_metrics.

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 implied use case (get a per-structure overview of an RTSTRUCT) and the constraint that the path is relative to the root are present, but there is no explicit when-to-use versus when-to-use-an-alternative guidance, e.g. versus rt_dvh_metrics or dicom_get_metadata.

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