Skip to main content
Glama

convert_format

Convert an image file to PNG, JPEG, or WebP by providing its path and desired format. JPEG gets a white background for transparent areas.

Instructions

Convert an image between PNG, JPEG and WebP. JPEG gets a white background where the source is transparent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatYesTarget format
image_pathYesLocal path to the image

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations are absent, so the description carries the burden. It does disclose one useful non-obvious behavior: JPEG conversion gives transparent areas a white background. However, it does not state whether the original file is overwritten, where the output is written, or what the return value is, which are material for a conversion tool.

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 short sentences with no filler. The action and target formats are front-loaded, and the important transparency caveat is placed in the second sentence. Every sentence earns its place.

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?

For a 2-parameter tool with no output schema, the basic calling contract is clear, but output and overwrite behavior are missing. The white-background caveat is helpful, yet an agent still cannot tell whether the operation is in-place or returns a new artifact.

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%, with both image_path and format already described clearly. The description adds no additional parameter-level meaning beyond what the schema provides, so the baseline score of 3 is appropriate.

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 verb ('Convert'), a clear resource ('an image'), and the exact allowed formats (PNG, JPEG, WebP). This distinguishes it from sibling tools like edit_image, resize_image, and transcode_video, so an agent can identify the tool's scope immediately.

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?

The description gives no guidance on when to use this tool versus alternatives. It never names sibling tools or exclusion conditions, such as 'use for format conversion only, not for resizing or editing,' leaving the agent to infer usage context from the schema alone.

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