Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DICOM_AGENT_MCP_NODESNoNode specifications, equivalent to --node. Several specs are separated by spaces. Format: name=URL[;option;option…]
DICOM_AGENT_MCP_CONFIGNoOptional YAML configuration file path. Equivalent to --config.
DICOM_AGENT_MCP_DEID_KEYNoSecret key used for stable de-identification pseudonyms and UIDs across runs. Default environment variable for deid_key_env.
DICOM_AGENT_MCP_CALLING_AENoAE title this server uses for DIMSE. Equivalent to --calling-ae. Default DICOM_MCP.
DICOM_AGENT_MCP_STORAGE_DIRNoLocal cache directory for retrieved files and renders. Equivalent to --storage-dir. Default ~/.dicom-agent-mcp/cache
DICOM_AGENT_MCP_ALLOWED_PATHSNoExtra directories that the local-file and pixel tools may read. Equivalent to --allow-path. Several paths are separated by ';' on Windows or ':' elsewhere.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

DICOM tools for searching, reading, retrieving, viewing, measuring and storing medical images. Typical workflow: list_nodes -> echo -> search (STUDY, then SERIES, then IMAGE) -> get_metadata -> retrieve (downloads to the local cache) -> read_local_metadata. Use store to send local files, move for a DIMSE C-MOVE between archives, and transfer to copy between any two nodes. Each tool works the same for DIMSE (C-FIND/C-MOVE/C-GET/C-STORE) and DICOMweb (QIDO/WADO/STOW) nodes. Attributes are named by DICOM keyword (e.g. PatientID, StudyDate, Modality) or hex tag (00100020). Matching supports DICOM wildcards (* and ?) and date ranges (20240101-20241231). For pixels: run check_geometry on a retrieved series before measuring or reconstructing; use render_image or render_mpr to look at images, pixel_statistics for HU/ROI values, measure_distance for mm distances (pixel coordinates are [row, column] from the top-left), and deidentify before sharing data. Results include an input_fingerprint of the exact pixels used; quote it when reporting findings.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_nodesA

List the configured DICOM nodes (PACS, VNA, DICOMweb services) and their protocols.

echoA

Check connectivity to a node (C-ECHO for DIMSE, a minimal QIDO-RS request for DICOMweb).

searchB

Search for patients, studies, series or instances (C-FIND or QIDO-RS).

get_metadataA

Read instance-level metadata without downloading pixel data (WADO-RS metadata or C-FIND).

retrieveA

Download a study, series or instance into the local cache (C-GET or WADO-RS). Returns file paths.

moveB

Ask a DIMSE archive to send data to another DICOM node (C-MOVE).

storeB

Send local DICOM files to a node (C-STORE or STOW-RS).

transferA

Copy data between any two nodes, including DIMSE to DICOMweb, through the local cache.

list_local_filesB

List DICOM files in the local cache.

read_local_metadataA

Read the full header of a local DICOM file. Pixel data is not loaded.

render_imageA

Render one frame of a local DICOM image as a PNG you can look at.

Applies the modality rescale (e.g. HU) and a display window, corrects non-square pixels, and reports which patient direction each image edge faces. Also returns the input fingerprint.

pixel_statisticsB

Pixel value statistics in modality units (HU for CT): mean, std, min, max, percentiles and area in mm2.

measure_distanceB

Measure a distance in mm between two pixel positions and give their patient coordinates.

check_geometryA

Check series geometry before measuring or reconstructing.

Reports orientation, spacing and extent per series, and flags missing or duplicate slices, mixed orientations, non-uniform spacing, gantry tilt and multiple frames of reference.

render_mprA

Reconstruct an axial, coronal or sagittal view from a stack of slices and render it as a PNG.

Refuses series that fail check_geometry (missing slices, mixed orientations, and so on).

deidentifyA

Write de-identified copies of local DICOM files (basic confidentiality profile subset) to the cache.

UIDs are remapped consistently, names and IDs are pseudonymised, and pixel data is not changed. The result includes an audit of scrubbed elements and residual-risk warnings (e.g. burned-in text).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 16 tools

Disambiguation4/5

Most tools target distinct resources and actions, but the network-movement family (retrieve, move, store, transfer) has subtle boundaries — transfer partly subsumes move/retrieve/store combinations, and get_metadata vs read_local_metadata differ mainly by local vs node context. Descriptions do help clarify, so an agent can likely choose correctly with care.

Naming Consistency3/5

Verb-first names dominate (list_local_files, read_local_metadata, check_geometry), but bare verbs (echo, search, retrieve, move, store, transfer, deidentify) and a noun-first name (pixel_statistics) break the pattern. The 'local' qualifier on list_local_files is not mirrored in list_nodes, adding mild inconsistency.

Tool Count4/5

16 tools is slightly heavy but justified by the breadth of the domain: local cache inspection, DIMSE/DICOMweb networking, image analysis, rendering and de-identification. Each tool maps to a real operation rather than filler.

Completeness4/5

Covers discovery, connectivity, search, retrieval, transfer, storage, geometry checks, measurement, MPR rendering and de-identification — a broad lifecycle. Minor gaps exist, such as cache cleanup/deletion, browsing the local cache by patient/study hierarchy rather than flat file listing, and no export of rendered output to a path.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues