Skip to main content
Glama

render_image

Render a labeled CT slice with an answer key and optional pixel-aligned hotspot masks to create medical practice questions and click-the-structure exercises.

Instructions

Render a specific slice with labels. Returns image path (+ base64), answer key with arrow/label geometry, and optional hotspot masks (transparent PNGs, pixel-aligned with the image). shuffle_labels randomly reassigns the label texts among the groups (seed to reproduce).

Input Schema

NameRequiredDescriptionDefault
nameNo
seedNo
viewYes
labelsYes
renderNo
case_idYes
output_dirNo
slice_indexYes
hotspot_zonesNo
include_base64No
shuffle_labelsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/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 genuinely useful behavior: it discloses the return payload (image path plus base64, answer key with arrow/label geometry, optional pixel-aligned hotspot mask PNGs) and explains that shuffle_labels randomly reassigns label text with seed for reproducibility. It does not mention whether files are written to disk via output_dir, what permissions are needed, cost or performance, or what happens on an invalid slice index.

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 the core action and the return contract, followed by the one non-obvious parameter behavior. Nothing is padded or redundant, though the parenthetical detail about transparent PNGs could be trimmed.

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

Completeness3/5

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

For an 11-parameter, no-annotation, no-output-schema tool, the description covers the return shape well, which is the most important missing piece. It still leaves the labels and hotspot_zones structures, view and slice selection, and output_dir side effects to the schema, so an agent could invoke it but not confidently.

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% at the top level across 11 parameters, so the description must compensate, but it only explains shuffle_labels and seed. Core parameters like case_id, view, slice_index, labels, hotspot_zones, include_base64, and output_dir get no elaboration. Nested $defs do carry some descriptions, such as Label.label and RenderSettings.size and window, which softens the gap slightly, but most top-level semantics are left implicit.

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 specific verb and resource: render a slice with labels, returning an annotated image. It is clear what the tool does, but it never distinguishes itself from the sibling tools labeled_image and batch_labeled_images, which sound like near-identical operations, so an agent cannot tell which to pick from the description 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 when-to-use guidance and no exclusions. Given that labeled_image and batch_labeled_images exist as siblings, the description should say when this single-slice renderer is the right choice instead of those, but it says nothing.

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