Skip to main content
Glama

Compress & Convert Image

image_compress_convert

Compress and convert local images to WebP, AVIF, JPEG, PNG, or TIFF while stripping EXIF/GPS metadata by default for privacy-preserving output.

Instructions

Convert and compress a local image to WebP, AVIF, JPEG, PNG, or TIFF via libvips (Sharp). Strips EXIF/GPS privacy metadata by default.

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": {
      "inputPath": "<inputPath>"
    },
    "name": "image_compress_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoTarget image formatwebp
qualityNo
losslessNo
inputPathYesLocal source image path
outputPathNoOptional destination file path
stripMetadataNoStrip EXIF/GPS/camera metadata for privacy (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden and does disclose two meaningful traits: the operation runs via libvips/Sharp, and EXIF/GPS metadata is stripped by default for privacy. It omits other mutation-relevant behavior an agent needs, such as whether an existing output file is overwritten, what happens when outputPath is omitted, and what the call returns (a path? a buffer?).

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?

Two tight sentences with zero filler, and the core operation is front-loaded ahead of the metadata note. Nothing is repeated or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There are no annotations and no output schema, and the description leaves gaps that matter for a file-writing tool: default output location/naming, overwrite policy, and return value. It is minimally adequate given the tool's simplicity, but an agent must still infer several calling details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description only restates facts already in the schema (the format enum and the stripMetadata default), adding no new meaning. The two undocumented parameters, quality and lossless, get no explanation in the description either, so the agent must guess at quality tradeoffs and which formats honor lossless.

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 pair (convert and compress) applied to a concrete resource ('a local image') and enumerates the five target formats, so an agent knows exactly what the tool produces. It stops short of naming any sibling (e.g. image_resize_crop or image_batch_process) to distinguish single-image conversion from batch or geometry operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use or when-not-to-use guidance and no routing to alternatives such as image_resize_crop for dimension changes or image_batch_process for many files. The agent can infer the tool is for format conversion, but nothing tells it when this is the wrong choice.

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