Skip to main content
Glama

clean_image

Removes explicitly selected removable metadata blocks from an inspected image and returns a base64-encoded copy while preserving raster data.

Instructions

Remove only explicitly selected removable image metadata blocks from the same image used for inspect_image. Returns a base64-encoded copy. Preserves raster data; cannot erase invisible watermarks or verified provenance. Max 2 MiB original.

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": {
      "image_base64": "<image_base64>",
      "finding_ids": "<finding_ids>"
    },
    "name": "clean_image"
  }
}

Input Schema

NameRequiredDescriptionDefault
finding_idsYes
image_base64Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so safety framing is partly covered, and the description adds genuinely useful behavior: raster data is preserved, output is a copy, and invisible watermarks/provenance are out of scope. The size limit ('Max 2 MiB original') is a real operational constraint, but nothing is said about failure modes, partial removal, or whether the original is retained.

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?

Four short sentences, all load-bearing, with the core action and return value front-loaded and constraints trailing. There is 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?

No output schema exists, but the description covers the return (base64 copy) and the key limits, which is enough for a two-parameter tool. Gaps are minor: no error behavior, no guidance that finding_ids must originate from the identical image instance, and no note on how the size cap is enforced.

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 coverage is 0%, so the description carries the burden and it does so meaningfully: finding_ids are the 'explicitly selected removable' blocks tied to a prior inspect_image result, and image_base64 must be that same image, with a 2 MiB cap on the original. It does not clarify ID string format or whether the base64 needs a data-URI prefix, which keeps it short of a 5.

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 ... removable image metadata blocks') plus the exact return ('a base64-encoded copy'). It also anchors itself to the sibling workflow ('the same image used for inspect_image'), which cleanly separates it from clean_text/inspect_text without naming them.

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?

The phrase 'only explicitly selected removable' plus 'the same image used for inspect_image' makes the workflow prerequisite explicit: inspect first, then pass those findings here. It also sets expectations about what cannot be accomplished (watermarks, verified provenance), though it never names a fallback tool or says when not to call this at all.

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

Deploy Server

Other Tools