Skip to main content
Glama

image-resize-convert-compress-watermark

Convert an image to another format

image_convert

Call this tool to re-encode an image as PNG, JPEG, BMP, GIF or TIFF. quality is JPEG-only. Transparency converted to JPEG flattens onto white; the answer says so. Free tier: sources up to 4 MP.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesName of an image uploaded with image_upload, or one this server wrote earlier
formatYesThe output format
qualityNoJPEG quality 1-100, default 80. Ignored for the other formats
out_pathYesName for the file to write; it comes back as a download link valid for one hour. The extension decides the output format; without a known one the input's format is kept
overwriteNoReplace out_path if it already exists. Default false. Never allows an output to be one of the inputs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The description discloses behaviors beyond the annotations: quality only applies to JPEG, transparency flattens to white on JPEG output, and free-tier sources are limited to 4 MP. Annotations are all false, so the description carries the burden of explaining side effects and limits; it does so without contradicting any annotation.

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 reasonably short and front-loaded, but the phrase 'the answer says so' is confusing filler and the quality note partially repeats the schema. It earns its place overall, but the odd wording reduces clarity and polish.

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 conversion tool with five parameters and no output schema, the description, combined with the rich input schema, covers the essential context: formats, quality semantics, transparency behavior, and source-size limits. It does not explain the output download behavior, but the schema already covers out_path, so nothing critical is missing.

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 the parameters are already well documented. The description adds a small behavioral note about quality being JPEG-only and transparency flattening, but most of that is already present in the schema property descriptions. Therefore it meets the baseline without adding substantial parameter-level clarity.

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 states a specific action ('re-encode an image') and explicitly enumerates the target formats, which unambiguously distinguishes this tool from sibling resize, compress, crop, and watermark tools. The verb is active and the resource is clear.

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 description clearly frames when to call the tool ('Call this tool to re-encode an image as...') and gives practical constraints such as JPEG-only quality and free-tier source size. It does not explicitly mention alternatives or when not to use it, but the format-conversion purpose is clear enough to route an agent.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.