Skip to main content
Glama

Image Converter API - HEIC, WebP, PNG, JPG

image_convert
Read-onlyIdempotent

Convert 1-30 images between formats: HEIC/HEIF (iPhone), WebP, PNG, GIF, BMP, TIFF -> JPG, PNG or WebP. EXIF rotation applied, GPS removed. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.003/call via x402 at https://radarbg.com/x402/image-convert.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "format": "webp",
      "fileName": "sample.png",
      "fileContent": "iVBORw0KGgoAAAANSUhEUgAAAHgAAABQCAIAAABd+SbeAAAA6klEQVR4nO3cQQ2DABAAwdKgg1cFVQIykIOEyqiIisFDKdsQZv6XXDb3vmFa3jeOd//3AlchdEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6Mi4Z/jznH+0xmk8Xut3gy46InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ZPIFtuOiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNCRDexBBl0OjJSaAAAAAElFTkSuQmCC"
    },
    "name": "image_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoOr several files: [{fileName, fileContent (base64)}]
formatNojpg, png or webpjpg
fileNameNoFile name with extension, e.g. report.pdf
fileContentNoThe file as base64 (a data: URI is fine)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/idempotent, but the description adds substantial behavior beyond them: EXIF rotation is applied, GPS is stripped, processing happens server-side, source files are deleted immediately with nothing stored, and there are concrete rate limits (5 free calls/day per IP) and two paid paths with pricing and header/endpoint details. This is exactly the context an agent needs before invoking a file-upload API.

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?

The conversion scope and format list are front-loaded, and every clause carries a distinct fact (transforms, storage policy, pricing, auth). It is dense to the point of being a single run-on block, and the pricing/URL detail crowds the operational description, but nothing is filler.

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 explain what comes back from a conversion (base64 strings, a download URL, a zip?), and it never does — critical given that files are deleted server-side immediately. Auth, limits, and transforms are otherwise well covered for a 4-parameter tool.

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 schema already explains files, format, fileName, and fileContent, making 3 the baseline. The description only adds the 1-30 file-count constraint and the output format enum values, which are already visible in the schema's enum, so it contributes little new parameter meaning.

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 and resource (convert images between formats) and then enumerates exact input formats (HEIC/HEIF, WebP, PNG, GIF, BMP, TIFF) and exact output formats (JPG, PNG, WebP), plus the 1-30 batch bound. This is far more precise than the sibling tools image_compress or image_resize, which implies a distinct operation an agent can select without opening the schema.

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 operational context (batch size, server-side execution, auth options) but never says when to choose this over image_compress, image_resize, or image_remove_exif. Usage is only implied by the format-conversion framing, so the agent must infer the boundary cases itself.

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