Skip to main content
Glama
lawriec
by lawriec

convert_video

Convert video files to different formats and codecs. Choose from MP4, MKV, WebM, AVI, MOV, and codecs like H.264 or VP9. Control quality with CRF or bitrate.

Instructions

Convert a video to a different container format and/or codec. Supports format changes (mp4, mkv, webm, avi, mov) and codec changes (h264, h265, vp9, av1). Quality can be controlled via CRF or target bitrate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
crfNoConstant Rate Factor for quality (0-63; lower = better quality, larger file). Typical values: 18-28 for h264/h265, 28-40 for vp9.
codecNoVideo codec: h264, h265, vp9, av1, or copy (re-container without re-encode)
bitrateNoTarget video bitrate (e.g. '2000k', '5M'). Cannot be used together with crf.
file_pathYesAbsolute path to the input video file
output_pathNoAbsolute path for the output file. Defaults to same directory as input with '_converted' suffix.
output_formatYesOutput container format: mp4, mkv, webm, avi, or mov
Behavior3/5

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

With no annotations, the description must carry the burden of behavioral disclosure. It mentions quality control via CRF or bitrate, which is useful, but it does not elaborate on side effects like audio handling, compatibility constraints, or whether re-encoding is always performed. This leaves some behavioral ambiguity.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, consisting of two clear sentences. It front-loads the primary purpose and immediately provides supported formats and codecs. No unnecessary words or redundant details are present.

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?

The description is adequate for a tool with a well-documented schema, but it lacks additional context such as use cases, prerequisites, or notes on how audio streams are handled. Given the tool's complexity (6 parameters, no annotations), more context would be beneficial.

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?

The input schema covers all six parameters with descriptions, so the baseline is 3. The description adds minimal additional meaning, merely restating that quality can be adjusted via CRF or bitrate, which is already present in the schema.

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 clearly states the tool converts videos to different container formats and codecs, listing specific supported formats and codecs. This distinguishes it from sibling tools like trim_video or extract_audio, which perform different operations.

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?

The description clearly implies when to use the tool (when format or codec conversion is needed) and provides examples of valid formats/codecs. However, it does not explicitly mention alternatives or situations where other tools should be used, so it falls short of full usage guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lawriec/mcp-video-reader'

If you have feedback or need assistance with the MCP directory API, please join our Discord server