Skip to main content
Glama

convert

Convert images between PNG, JPG, WebP, GIF, BMP, TIFF, ICO, and AVIF/HEIC while handling transparency, animation, and CMYK/16-bit color for compatible output files.

Instructions

Convert an image to another format: png, jpg, webp, gif, bmp, tiff, ico, and avif / heic when this install supports them (an error says so if not).

Transparency going to jpg or bmp is flattened onto background (a name like 'white' or hex like '#ff00ff'; the result says so). Animated GIF/WebP/PNG stay animated when the target can hold an animation, otherwise the first frame is used and the result says so. CMYK and 16-bit images are converted to RGB/8-bit. lossless=true applies to webp. Output is photo.webp next to the input (photo.converted.png if the format is unchanged) unless output= is given; existing files are never replaced 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>",
      "format": "<format>"
    },
    "name": "convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
formatYes
outputNo
previewNo
qualityNo
losslessNo
overwriteNo
allow_hugeNo
backgroundNowhite
keep_metadataNo

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?

Since no annotations are provided, the description shoulders the entire behavioral burden, explicitly stating complex rules regarding transparency flattening, animation persistence, CMYK/bit-depth conversion, file naming conventions, and overwriting safety.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very dense and verbose, attempting to cram numerous edge cases, constraints, and behavioral rules into a single, long paragraph. While valuable, its lack of structure makes it slightly less accessible than a more organized definition.

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

Completeness5/5

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

The definition is extremely complete, covering every potential point of confusion for a user, from how file names are constructed to the consequences of conversion (e.g., animation degradation). No crucial information is missing.

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

Parameters5/5

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

Given the 0% schema description coverage, the text is exceptional at explaining the purpose and behavior of key parameters. For instance, it explains what 'lossless' applies to and how the 'background' parameter dictates transparency results.

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?

The description clearly states the tool's primary function ('Convert an image to another format') and provides immediate context of the supported formats, distinguishing it from sibling tools like 'resize' or 'crop'.

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?

It implies usage when format or bit depth conversion is needed, and implicitly advises against using it if only simple transformations like cropping are required. The focus on conversion makes the usage context clear.

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