Skip to main content
Glama

AVIF to JPG API - convert modern .avif images to JPG or PNG

avif_to_jpg
Read-onlyIdempotent

Convert modern AVIF images into widely supported JPG or PNG files with EXIF auto-orientation and configurable JPEG quality. Deterministic Pillow 13 AVIF decoder, 0 AI, nothing stored. Runs on our server, files are deleted right after the call, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/avif-to-jpg.

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": "jpg",
      "quality": "high",
      "fileName": "sample.png",
      "fileContent": "iVBORw0KGgoAAAANSUhEUgAAAHgAAABQCAIAAABd+SbeAAAA6klEQVR4nO3cQQ2DABAAwdKgg1cFVQIykIOEyqiIisFDKdsQZv6XXDb3vmFa3jeOd//3AlchdEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6Mi4Z/jznH+0xmk8Xut3gy46InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ROiJ0ROiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNARoSNCR4SOCB0ZPIFtuOiI0BGhI0JHhI4IHRE6InRE6IjQEaEjQkeEjggdEToidEToiNCRDexBBl0OjJSaAAAAAElFTkSuQmCC"
    },
    "name": "avif_to_jpg"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoOr several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)
formatNoOutput format: jpg or pngjpg
qualityNoJPG quality: max (95), high (90), med (80), small (70)max
fileNameNoFile name with extension, e.g. report.pdf
fileContentNoThe file as base64 (a data: URI is fine; 20 MB total decoded limit per call)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / fileContent / description
      Previous value: -"The file as base64 (a data: URI is fine)"New value: +"The file as base64 (a data: URI is fine; 20 MB total decoded limit per call)"
    • changedInput schema / properties / files / description
      Previous value: -"Or several files: [{fileName, fileContent (base64)}]"New value: +"Or several files: [{fileName, fileContent (base64)}] (up to 60 files, 20 MB total)"
    • addedInput schema / properties / files / maxItems
      Added value: +60
  2. Added

TDQS

A3.8/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses that processing happens server-side on a deterministic Pillow decoder with no AI, that files are deleted immediately after the call with nothing stored, and that there are both free rate limits and paid auth paths (X-API-Key header, x402 price per call). This is exactly the behavioral context an agent needs before sending user image data.

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 purpose is correctly front-loaded in sentence one, but the text then repeats itself ('0 AI, nothing stored' followed by 'nothing stored' again) and spends a large share of its length on pricing URLs and payment mechanics. Tightening the duplication would make the same information substantially shorter.

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 5-parameter conversion tool with no output schema and annotations that already cover safety, the description covers storage policy, auth, rate limits, and decoding method adequately. The one gap is that it never indicates what the call returns (file payload, base64, or URL), which an agent must discover by calling.

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 format, quality tiers, fileName, fileContent and the multi-file 'files' array are already documented with enums and limits. The description adds only a passing mention of configurable JPEG quality and EXIF orientation, not any new semantics for the batching or base64 parameters, so it sits at the baseline.

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 first sentence states a specific verb and resource (convert AVIF images to JPG or PNG) plus two distinguishing behaviors: EXIF auto-orientation and configurable JPEG quality. It does not, however, differentiate itself from nearby siblings such as image_convert or jfif_to_jpg, leaving the agent to infer that this is the AVIF-specific variant.

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?

Usage is only implied by the input format (AVIF in, JPG/PNG out); there is no explicit when-to-use statement or exclusion naming a generic converter sibling. The description does supply useful call-context guidance (free 5 calls/day per IP, paid via X-API-Key or x402), which is operational rather than selection guidance.

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