Skip to main content
Glama

Encode a media file with Media Encoder

encode_file

Transcodes any media file on disk with an Adobe Media Encoder preset, queuing the job and optionally waiting to return output size, duration, and stream details.

Instructions

Transcode a media file on disk (it does not need to be in the project) with an export preset through Adobe Media Encoder. Queues the job and starts the queue; with wait=true (default) waits for the output and returns its size and, with ffprobe, duration and streams.

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_path": "<input_path>",
      "output_path": "<output_path>"
    },
    "name": "encode_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNoWait until Media Encoder has written the file. Default true.
exporterNoNarrow preset_name to one exporter, by its exact name from list_exporters, e.g. "H.264", "QuickTime", "Waveform Audio", "MP3".
overwriteNoReplace an existing output file. Default false.
input_pathYesAbsolute path of the source media file.
output_pathYesAbsolute output file path. Its extension is set to the one the preset produces.
preset_nameNoPreset name to look up when preset_path is not given, e.g. "Match Source - High bitrate". Words must all match; an exact name wins.
preset_pathNoAbsolute path of an .epr export preset (from find_export_presets). Preferred.
timeout_secondsNoWith wait: how long to wait for the file. Default 600.
remove_on_completionNoRemove the job from the Media Encoder queue when it finishes. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that the job is queued and the queue started, that waiting is on by default, and that output size, duration, and streams are reported. It does not describe failure behavior or what is returned when wait=false, but the annotations already establish the mutation and side-effect profile.

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 dense but well-ordered sentence with the core action front-loaded and the wait/return behavior trailing. No filler, though the parenthetical about project membership interrupts the main clause slightly.

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 nine-parameter tool with no output schema, the description covers the main flow and the default blocking behavior. It leaves meaningful gaps around asynchronous usage (what wait=false returns) and failure modes such as missing presets or write errors.

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 all nine parameters are already documented, including preset lookup and timeout. The description adds only that wait defaults to true and that the result includes size/duration, which is marginal value over the schema baseline.

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 names a specific verb and resource — 'Transcode a media file on disk ... with an export preset through Adobe Media Encoder' — and explicitly distinguishes itself from the sequence-based sibling by noting the file need not be in the project.

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?

It states the operational flow (queue the job, start the queue) and the default wait behavior, which tells an agent when this tool is appropriate. It stops short of explicitly naming queue_sequence_in_media_encoder as the alternative for project sequences, so the differentiation is implicit rather than directive.

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

Deploy Server

Other Tools