Skip to main content
Glama

image_convert

Read-onlyIdempotent

Convert an image between PNG and JPEG client and server side from freedailypro -- WebP output isn't supported (this build's canvas library can't encode it)

Input Schema

NameRequiredDescriptionDefault
formatYes
qualityNo
fileBase64Yes
backgroundColorNoCSS color, e.g. '#ffffff' -- used to fill transparent areas when converting to JPEG

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds a real capability constraint beyond the annotations — WebP encoding is unavailable because the canvas library can't encode it — which tells the agent what will silently fail. It still omits defaults for quality and how transparent pixels are handled without backgroundColor.

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?

It is a single front-loaded sentence with the format scope first and the unsupported-format caveat second; nothing is padded. The only dead weight is the 'from freedailypro' attribution, which earns no place in a tool description.

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?

With no output schema, the description should say what comes back (converted image bytes, a base64 string, or a URL) and it does not. Combined with undocumented quality/fileBase64 parameters, the definition is adequate to pick the tool but leaves real gaps for correct invocation.

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 description coverage is only 25% — solely backgroundColor is documented in the schema. The description compensates for none of it: quality (0-1 range, default), fileBase64, and the format enum's expected values get no mention, so an agent must infer that quality is a 0-1 float and that fileBase64 is an encoded image payload.

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 and resource (convert an image) and bounds the operation to PNG and JPEG, which separates it from the format-siblings video_convert and audio_convert. The phrase 'client and server side from freedailypro' adds branding noise rather than clarity, so it falls short of a crisp 5.

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?

It gives one explicit when-not ('WebP output isn't supported') with a stated reason, which is genuinely useful routing information. However, it names no alternative for WebP cases and gives no other conditions (e.g., when to prefer this over a resize/rotate round-trip), leaving usage largely implied.

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