Skip to main content
Glama

strip_metadata

Removes private photo metadata like GPS location, camera details, and dates so images can be shared safely, then verifies the output is clean.

Instructions

Remove private metadata (GPS location, camera make/model/serial, dates, software, XMP, IPTC, comments, trailing embedded data) so a photo can be shared safely. Reports exactly what was found and removed, then re-reads the output to verify it is clean.

JPEGs are stripped losslessly (pixel data copied byte for byte). With keep_orientation=true (default) a bare Orientation tag is kept so the photo still shows upright; keep_orientation=false bakes the rotation into the pixels (re-encodes at quality). Other formats are re-encoded without metadata (PNG is lossless, WebP lossy). The ICC color profile is kept. Output: photo.stripped.jpg next to the input unless output= is given; never replaces a file unless overwrite=true.

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": {
      "path": "<path>"
    },
    "name": "strip_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
outputNo
previewNo
qualityNo
overwriteNo
allow_hugeNo
keep_orientationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so well: JPEG stripping is lossless, other formats re-encode, ICC profile is preserved, the output is re-read to verify, the default output filename and location are stated, and the safety guarantee ('never replaces a file unless overwrite=true') is explicit. That is exactly the behavioral detail an agent needs before invoking a mutation tool.

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?

Front-loaded with purpose, then a format-behavior paragraph, then output rules. Every sentence adds operative information (lossless vs. re-encode, ICC retention, file naming, clobber protection) with no restatement of the name or 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?

For a 7-parameter mutation tool with no annotations and no output schema, the description covers format-specific behavior, verification, and file-safety semantics thoroughly. The remaining omission is the undocumented `preview` and `allow_huge` parameters, which an agent cannot infer.

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 description coverage is 0%, so the description must compensate, and it explains five of seven parameters in context (path as input, output naming, quality via re-encode, overwrite via the no-clobber guarantee, keep_orientation with its default). The `preview` and `allow_huge` parameters are never mentioned, leaving a real gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Remove private metadata... so a photo can be shared safely') and enumerates exactly what is removed (GPS, camera serial, XMP, IPTC, comments, trailing data). This is clearly distinct from siblings like image_info (inspect) or convert (format change).

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?

Usage context is clear from the privacy-sharing framing and the keep_orientation tradeoff ('bakes the rotation into the pixels (re-encodes at `quality`)'), which tells the agent when the choice matters. It stops short of explicit when-not-to-use guidance or naming alternatives, so it does not reach a 5.

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