Skip to main content
Glama

Convert an image to another format

convert_image

Convert an image to JPEG, PNG, WebP, AVIF, GIF or TIFF. Use webp or avif to modernise images for the web. Returns a download URL valid for one hour.

Input Schema

NameRequiredDescriptionDefault
formatYesThe format to convert to.
qualityNo
image_urlNoPublic http(s) address of the image. Use this or image_base64.
max_widthNo
max_heightNo
image_base64NoThe image file's bytes, base64-encoded. Use for a local file, e.g. one in the repository.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden, and it does disclose the return value ('a download URL valid for one hour') — valuable, since there is no output schema. It does not disclose whether image_url and image_base64 are mutually exclusive, whether quality/resizing affect output, rate limits, or failure behavior, leaving notable gaps for a no-annotation tool.

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

Conciseness4/5

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

Three short sentences, front-loaded with the core action, then guidance, then return behavior — no filler. Minor redundancy: the format list restates part of the enum without adding information, and its incompleteness slightly undercuts its value.

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?

The return contract is covered despite no output schema, which is the biggest win. But with zero annotations and no output schema, the description should also cover the two mutually exclusive input paths, resize/quality behavior, and error conditions; as written an agent can invoke it but may misuse optional parameters.

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 only 50%: image_url and image_base64 are documented, but quality, max_width, and max_height are undefined in both schema and description. The description only touches the format parameter (and incompletely), so it fails to compensate for the undocumented resize and quality controls that materially change output.

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?

States a specific verb and resource ('Convert an image') and enumerates target formats, so the agent immediately knows this is a format-transcoding tool distinct from compress_image or upscale_image. However, the listed formats omit six of the twelve enum values (bmp, ico, jxl, pdf, tga, psd), so the stated scope is narrower than the actual capability.

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

Usage Guidelines3/5

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

'Use webp or avif to modernise images for the web' gives a format-selection heuristic, which is genuine usage guidance. But there is no guidance on when to pick this over compress_image, upscale_image, or remove_background, and no prerequisites (input source constraints, size limits, auth) are mentioned.

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.

Resources