Skip to main content
Glama

convert

Transcodes media files between formats such as MP4, MKV, AVI, MOV, WAV, and MP3, with optional custom video/audio codecs and extra FFmpeg arguments.

Instructions

Convert media between formats (e.g., MP4→MKV, AVI→MP4, WAV→MP3, MOV→MP4). Supports custom codecs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "input": "<input>",
      "output": "<output>"
    },
    "name": "convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesInput file path
outputYesOutput file path (determines format by extension)
extra_argsNoAdditional FFmpeg arguments
audio_codecNoAudio codec (e.g., aac, libmp3lame, copy)
video_codecNoVideo codec (e.g., libx264, libx265, copy)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It mentions custom codecs but does not disclose whether output files are overwritten, what permissions or FFmpeg availability are required, or what happens on failure for a write-producing operation.

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 description is a single, front-loaded sentence with no wasted prose. The format examples earn their place by making the tool's scope immediately clear, though the codec note is somewhat redundant with the schema.

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 five-parameter media conversion tool with no annotations and no output schema, the description covers purpose and codec support but omits overwrite behavior, error handling, and output expectations. It is adequate for basic selection but leaves meaningful behavioral gaps.

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 the schema already documents every parameter including the output-path extension behavior. The description adds only marginal meaning by noting custom codec support, which the schema's audio_codec and video_codec fields already cover.

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 media between formats', with concrete examples (MP4→MKV, WAV→MP3). It is clearly distinct from siblings like merge, trim, or extract_audio, though it does not explicitly route the agent away from them.

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 implied by the nature of format conversion, but there is no explicit guidance on when to use this versus alternatives such as extract_audio or compress. No prerequisites or exclusions are stated.

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