Skip to main content
Glama

deidentify

Idempotent

Create de-identified copies of local DICOM files with consistent UID remapping and pseudonymised names and IDs. Returns an audit of scrubbed elements plus residual-risk warnings such as burned-in text.

Instructions

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).

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": {
      "paths": "<paths>"
    },
    "name": "deidentify"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathsYesLocal DICOM files or directories inside the allowed paths.
date_modeNoShift dates by a per-patient offset, or keep them.shift
keep_privateNoKeep private tags.
keep_descriptionsNoKeep study/series descriptions and protocol names.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=true. The description adds real behavioral detail beyond them: UIDs are remapped consistently, names and IDs are pseudonymised, and pixel data is untouched. It also discloses outputs in the form of an audit of scrubbed elements plus residual-risk warnings such as burned-in text. That consistent remapping also explains why the idempotent hint holds.

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?

The prose is three tight sentences, and the core action and destination are front-loaded. Every sentence earns its place: the first gives the action and destination, the second says what changes and what does not, and the third covers the returned audit and warnings. There is no filler.

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 enumerated, and the annotations carry the safety profile. The description still covers the mutation semantics, what is preserved, and the residual-risk caveat. It is slightly thin on edge behavior, such as what happens if an output already exists or where the cache lives, but nothing critical is missing for correct invocation.

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 100%, so paths, date_mode, keep_private, and keep_descriptions are already documented in the schema, and a baseline of 3 applies. The description does not add any per-parameter meaning, such as what 'basic profile subset' implies for the keep_* flags or how date shifting interacts with pseudonymisation. As a result, the description neither compensates for nor enriches the schema.

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?

The description states a specific verb and resource: it writes de-identified *copies* of local DICOM files to the cache, and it names the de-identification profile (basic confidentiality profile subset). That is far more informative than the bare name. It does not explicitly contrast itself with siblings such as move, store, or transfer, which also handle files, so sibling differentiation is left implicit.

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?

Usage is only implied. Saying it writes 'copies ... to the cache' tells the agent the originals are left in place, which is useful context for choosing this tool over a move. However, there are no explicit when-to-use or when-not-to-use statements, and no alternative is named for cases where the agent might instead want a plain copy.

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