Skip to main content
Glama

AVI to MP4 API - convert AVI (DivX/Xvid/MJPEG) videos to universal H.264 MP4

avi_to_mp4
Read-onlyIdempotent

Convert an AVI video (base64, max 15 MB) into a universal H.264/AAC MP4 with +faststart for web and mobile playback. Uses instant lossless remux when already H.264, otherwise transcodes with configurable CRF quality (19/23/28), optional resolution downscale (1080p/720p/480p), AAC audio or mute, yadif deinterlacing and metadata stripping. Deterministic local ffmpeg, 0 AI, 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.004/call via x402 at https://radarbg.com/x402/avi-to-mp4.

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": {
      "audio": "160",
      "quality": "23",
      "resolution": "keep",
      "stripMetadata": true
    },
    "name": "avi_to_mp4"
  }
}

Input Schema

NameRequiredDescriptionDefault
audioNoAAC audio bitrate (160/128 kbps) or mute160
qualityNoH.264 CRF quality: 19 (high), 23 (balanced), 28 (small)23
fileNameNoOptional filename, e.g. clip.avi
resolutionNoOptional max output height (never upscales)keep
deinterlaceNoApply yadif deinterlacing for interlaced camcorder/VHS AVI files
fileContentNoBase64-encoded .avi video (max 15 MB; empty = built-in sample Xvid/MP3 AVI)
stripMetadataNoStrip container metadata tags

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/idempotent; the description adds the details an agent actually needs: deterministic local ffmpeg, zero AI, nothing stored, a 15 MB input ceiling, exact free-tier limits (5 calls/day per IP), and both auth paths (X-API-Key or x402 per-call pricing). That is well beyond what the structured fields convey.

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?

Front-loads the core conversion behavior in one sentence before layering options, execution model, and pricing. Dense but every clause carries information; the long pricing URL and per-call figure are the only parts that read as promotional rather than operational.

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 7-parameter tool with no output schema, the definition covers input constraints, conversion modes, output format, storage guarantees, rate limits, and authentication. The notable gap is the response shape — whether the MP4 comes back as base64, a URL, or a job handle — which the agent must infer.

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 coverage is 100%, so every one of the 7 parameters is already documented with enums and defaults. The description restates the same options (CRF 19/23/28, 1080p/720p/480p, AAC or mute, deinterlace, metadata strip) without adding syntax or tradeoff depth beyond the schema's own labels, so baseline 3 applies.

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?

States a specific verb and both resources: convert AVI (DivX/Xvid/MJPEG) into H.264/AAC MP4, with the output container and faststart flag named. An agent can distinguish this from generic siblings like data_convert or image_convert purely from the first clause.

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

Usage Guidelines4/5

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

Explains the internal routing decision (lossless remux when the source is already H.264, otherwise transcode) and the available quality/resolution paths, which tells an agent what it will get for given inputs. It lacks explicit 'when to choose this over a sibling' framing, but the format specificity makes the use case self-evident.

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