Skip to main content
Glama
rt-imaging-mcp

rt-imaging-mcp

by MLwithDyy

Dose-volume metrics for one structure

rt_dvh_metrics
Read-onlyIdempotent

Calculates dose statistics and D(p)/V(t) DVH metrics for one selected ROI by combining an RTSTRUCT and RTDOSE in a shared reference frame.

Instructions

Dose statistics and D/V metrics for one structure (paths relative to the root).

Combines an RTSTRUCT and an RTDOSE that share a frame of reference. Use rt_structure_summary to find roi_number. dose_percentages gives D(p), the highest dose that at least p percent of the volume receives (default 95, 50, 2). volume_thresholds_gy gives V(t), the volume receiving at least t Gy (default 20). Results are approximate (voxel centres, nearest contour slice) and not validated against a planning system.

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": {
      "struct_path": "<struct_path>",
      "dose_path": "<dose_path>",
      "roi_number": "<roi_number>"
    },
    "name": "rt_dvh_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
dose_pathYes
roi_numberYes
struct_pathYes
dose_percentagesNo
volume_thresholds_gyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered; the description adds genuinely new behavior: it fuses two datasets, defines the exact semantics of D(p) and V(t) including their defaults, and flags that results are approximate (voxel centres, nearest contour slice) and unvalidated against a planning system. The accuracy caveat is exactly the kind of disclosure annotations cannot carry. It stops short of saying what happens on frame-of-reference mismatch.

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?

Front-loaded with the one-line purpose, then prerequisites, then metric definitions, then caveats — a sensible order. The D(p)/V(t) glosses are dense but each earns its place; the parenthetical '(paths relative to the root)' is slightly awkwardly wedged into the opening line.

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?

An output schema exists, so return values need not be explained, and the remaining burden — prerequisites, parameter meanings, accuracy limits — is covered. The main residual gap is error/edge behavior when the two files do not share a frame of reference, which the description names as a requirement but does not say how failure manifests.

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%, so the description must compensate, and it largely does: roi_number is tied to its source tool, dose_percentages is defined as D(p) with default values 95/50/2, volume_thresholds_gy is defined as V(t) with default 20, and 'paths relative to the root' explains the path parameters. struct_path and dose_path are only implied by the RTSTRUCT/RTDOSE mention rather than described directly.

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?

States a concrete computation (dose statistics and D/V metrics) scoped to a single structure, and the title plus first sentence make the resource unambiguous. It distinguishes itself from rt_structure_summary by assigning that tool the role of finding roi_number, but it never explicitly contrasts with rt_dose_summary, which is the nearest sibling by name.

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?

Gives an explicit prerequisite workflow: call rt_structure_summary first to obtain roi_number, and note that the RTSTRUCT and RTDOSE must share a frame of reference. There is no when-not-to-use guidance (e.g. what to do when the frame-of-reference precondition fails), which keeps it below a 5.

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