Skip to main content
Glama

Conform a video for a platform

conform_for_platform

Re-encode videos into upload-ready files for target platforms, correcting aspect ratio, frame rate, H.264/AAC audio, fast start, and optional metadata stripping.

Instructions

Re-encode a video into an upload-ready file for a platform: correct aspect ratio and size (crop to fill, pad with bars, or the blurred-background look), constant frame rate, H.264 yuv420p with Rec.709 tags, AAC 48 kHz stereo, fast start, and optional metadata stripping (removes GPS). Set dry_run to only get the ffmpeg command. Never overwrites an existing file unless overwrite is true.

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": {
      "path": "<path>",
      "platform": "<platform>"
    },
    "name": "conform_for_platform"
  }
}

Input Schema

NameRequiredDescriptionDefault
crfNoQuality: lower is better and larger. 18 is visually lossless for most footage.
fitNoHow to handle a different aspect ratio: crop to fill, pad with solid bars, or blur = blurred copy of the shot behind it.crop
fpsNoForce a frame rate. By default the source rate is kept unless it is variable or above the platform max.
pathYesAbsolute path to a local media file. ~ is expanded.
startNoTrim start: seconds or HH:MM:SS.mmm.
widthNoOverride the output width.
heightNoOverride the output height.
presetNomedium
dry_runNoOnly return the ffmpeg command; do not encode.
durationNoTrim length in seconds.
platformYesTarget platform: instagram_reels, instagram_feed, tiktok, youtube_shorts, youtube, x, linkedin
overwriteNo
pad_colorNoFor fit=pad: an ffmpeg color name or hex like 0x111111.black
crop_anchorNoFor fit=crop: 0 keeps the left/top, 0.5 the center, 1 the right/bottom.
output_pathNoWhere to write the result. Defaults to <name>_<platform>.mp4 next to the source.
strip_metadataNoRemove metadata such as GPS location and device info.
audio_bitrate_kbpsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is structured. The description adds real value beyond that: it states the non-overwrite default, that dry_run returns only the ffmpeg command without encoding, and that metadata stripping removes GPS. However, with a 17-parameter mutation tool it does not cover failure modes, whether output is atomic, or how it behaves on malformed input.

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?

A single dense sentence that is front-loaded with the action and then lists output specs, followed by two short operational clauses. No filler sentences, though the long codec enumeration is heavy for one breath.

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 17-parameter encode tool with no output schema, the description conveys the produced artifact thoroughly (container, codecs, chroma, audio, fast start) plus the two safety-critical behaviors (no overwrite without overwrite=true, dry_run preview). It omits platform-spec differences and error/return behavior, which keeps it from 5.

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 82%, so the schema already documents crf, fit, fps, pad_color, crop_anchor, output_path, strip_metadata and the platform enum. The description's mentions of fit modes ('crop to fill, pad with bars, or the blurred-background look'), dry_run, strip_metadata/GPS and overwrite largely restate schema text rather than adding new meaning. Baseline 3 is appropriate.

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?

Opens with a specific verb+resource: 'Re-encode a video into an upload-ready file for a platform', then enumerates the concrete output properties (aspect ratio, CFR, H.264 yuv420p, Rec.709, AAC 48 kHz, fast start). An agent knows precisely what comes out. It does not explicitly contrast itself with siblings like check_platform_spec or probe_media, so it stops short of 5.

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 'upload-ready' framing; there is no explicit 'use this before uploading' or 'call check_platform_spec first to preview specs'. The two guidance sentences present ('Set dry_run to only get the ffmpeg command', 'Never overwrites...') are parameter-level instructions rather than when-to-use/when-not-to-use routing.

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