Skip to main content
Glama

scrub_image_metadata_lossless

Idempotent

Strips EXIF, GPS, XMP, thumbnails, and hidden text metadata from PNG, JPEG, or WebP images without recompressing pixels, returning CRC-32 proof of pixel parity.

Instructions

Strips non-essential metadata chunks (EXIF, GPS, IFD1/JFIF thumbnails, ComfyUI tEXt/zTXt/iTXt, XMP, COM) and truncates trailing aCropalypse bytes without re-compressing pixels, returning CRC-32 pixel parity proof.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "scrub_image_metadata_lossless"
  }
}

Input Schema

NameRequiredDescriptionDefault
filePathNoLocal filesystem path to the input PNG, JPEG, or WebP image to scrub losslessly.
base64DataNoOptional Base64-encoded PNG, JPEG, or WebP payload when filePath is omitted.
outputPathNoOptional destination file path where the scrubbed zero-metadata image bytes should be written.
keepIccProfileNoWhen true, preserves embedded ICC color profile chunks (PNG iCCP / JPEG APP2 ICC_PROFILE) while stripping EXIF, GPS, XMP, and text metadata.
returnCleanedBase64NoWhen true, returns the scrubbed binary image encoded as Base64 in the response payload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, idempotent local behavior, so the bar is lower, yet the description still adds real substance: the exact metadata classes destroyed, aCropalypse trailing-byte truncation, the guarantee that pixels are not re-compressed, and a CRC-32 parity proof in the response. The remaining gap is whether the source file is ever modified in place versus only written to outputPath, which is left to the schema.

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?

A single front-loaded sentence with the action first and the guarantees last; every clause (chunk list, truncation, no recompression, parity proof) carries distinct information. No filler or restatement of the tool name.

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 no output schema, the description still communicates the key return element (CRC-32 pixel parity proof) and the core guarantee of lossless pixel preservation. It could say more about what the response contains when returnCleanedBase64 is false, but format choices are covered by the fully documented input schema.

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 filePath, base64Data, outputPath, keepIccProfile, and returnCleanedBase64 are already fully documented in the structured fields. The description adds no parameter-level meaning beyond the schema, so the baseline of 3 applies.

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 uses a precise verb ("strips") plus an enumerated resource scope (EXIF, GPS, IFD1/JFIF thumbnails, ComfyUI tEXt/zTXt/iTXt, XMP, COM, aCropalypse trailing bytes), so an agent knows exactly what operation is performed. It is clearly distinct from the read-only siblings inspect_image_forensics and generate_forensic_image_specimen, but it does not explicitly name or route against verify_pixel_stream_parity even though it claims to return its own parity proof.

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 by the scope language: the mention of "without re-compressing pixels" and "non-essential metadata" signals when lossless scrubbing applies, but there is no explicit when-to-use/when-not-to-use statement. No alternative tool (e.g. a verification or inspection tool) is named for cases where the agent wants to look before scrubbing.

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