Skip to main content
Glama

Process media (crop, unletterbox, reframe, smooth slow-mo)

process_media
Idempotent

Run one ffmpeg preset on an image or video already in emero, in emero's sealed sandbox, and store the result as a new creation (job:#0, same color as the source, high-quality encode). Use this instead of your own sandbox for any file that goes back into emero. Presets: crop (box), face_crop (box = the face; grows it to head and neck), unletterbox (removes baked-in bars; optional target), reframe_aspect (target + anchor), slowmo_smooth (speed 0.1-0.9, fps; motion-interpolated, source 10s max). box is fractions 0-1 of the upright frame (measure it in your own sandbox or by viewing the image). Returns a job id: poll it with check_generation. Free.

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": {
      "preset": "<preset>",
      "input_id": "<input_id>"
    },
    "name": "process_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxNocrop, face_crop: {x, y, w, h} as fractions of the upright frame.
fpsNoslowmo_smooth output fps (default 30).
speedNoslowmo_smooth: 0.5 = half speed.
anchorNoreframe_aspect: where the slice sits (default center).
presetYes
targetNoreframe_aspect (required), unletterbox (optional).
input_idYesjob:<uuid>#n, upload:<id> or memory:<id>#n of ONE image or video.
keep_audioNoslowmo_smooth: keep the audio, slowed (default off).
project_idNoOpaque per-chat project id: "p-" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list.
project_nameNoShort human title for the project (2-5 words from the user request, e.g. "Perfume ad campaign"). Pass it on your first generate/ingest_url so the project is not left "Untitled". You may also rename at will later — pass an updated project_name (on a generate/ingest_url, or on set_settings with no other change) whenever the user asks, e.g. "call this project cats".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true, openWorldHint=false), and the description adds real behavioral context on top: output is a new creation named job:<uuid>#0, color-matched and high-quality encoded, and the tool is free. It also discloses the async contract — it returns a job id that must be polled with check_generation — which is not derivable from annotations or schema.

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?

Purpose is front-loaded, then routing guidance, then presets — a sensible order with no filler. The preset sentence is dense with stacked parentheticals, which slightly slows scanning, but virtually every clause carries distinct information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 10 parameters, a nested box object and no output schema, the description still covers everything an agent needs: what gets produced, where it lands, how to retrieve it, that it is free, and per-preset parameter constraints. Nothing essential is left to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 90%, so the baseline is 3, but the description adds meaning the schema does not: box is measured in fractions of the upright frame and should be obtained by inspection, and for face_crop the box is the face and is expanded to head and neck. It also adds the non-schema constraint that slowmo_smooth sources must be 10s or shorter.

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 first sentence names a specific verb (run one ffmpeg preset), the resource (an image or video already in emero), the execution environment (sealed sandbox) and the outcome (a new creation). The preset list makes the scope concrete, and it explicitly distinguishes itself from doing the work in the agent's own sandbox.

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?

"Use this instead of your own sandbox for any file that goes back into emero" is an explicit when-to-use rule with a clear when-not. Per-preset applicability is stated (box for crop/face_crop, target required for reframe_aspect, speed/fps for slowmo_smooth). It does not route against sibling tools such as extract_frame or combine_videos, but it does not need to for the core decision.

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.