Skip to main content
Glama

Rewrite what is in a video, keeping its motion

edit_video
Destructive

The SAME clip with the prompt's changes applied; camera, timing and motion stay. Returns the new job's id. WHEN: restyle or recast footage ('make it snow', 'put them in suits'). Read get_recipe restyle first. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. COST: the server-measured clip length times a per-second rate by resolution. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).

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": {
      "source_video": "<source_video>",
      "prompt": "<prompt>",
      "resolution": "<resolution>"
    },
    "name": "edit_video"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesWhat each thing in frame becomes; the motion is kept.
durationNoSeconds; only with `reference_images`. Only if the user asked; never to save tokens, never carried over.
resolutionYesREQUIRED: use `720p` unless the user asked for `1080p`, and name the choice in the priced ask; never carried over from an earlier request.
aspect_ratioNoOnly with `reference_images`. Only if the user asked; never to save tokens, never carried over.
source_videoYesThe clip, 3 to 10 seconds. A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused.
estimate_onlyNoPrice only; creates nothing.
idempotency_keyNoRetry key (IDEMPOTENCY).
reference_imagesNoOptional pictures that steer the look (a face, an outfit, a prop).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry-safety key (IDEMPOTENCY)."New value: +"Retry key (IDEMPOTENCY)."
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

Substantial behavior is disclosed beyond the annotations: the call already opens the aicut card (so `show_generation` must not be called), the job returns an id, cost is server-measured clip length times a per-second rate by resolution, and the call spends tokens requiring a priced ask and a named go-ahead. However, the annotations declare destructiveHint=true and idempotentHint=false, and the description never explains what is destructive here (irreversible spend? source overwritten?) nor that replays without `idempotency_key` can double-charge, leaving the risk profile only partially reconciled with the structured hints.

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?

Content is front-loaded – outcome and return value first, then WHEN, then card/wait/cost/spending mechanics – so an agent can stop reading early and still call correctly. The all-caps fragment style ('THE CARD:', 'WAIT:', 'COST:', 'SPENDS TOKENS:') is dense and slightly telegraphic but each label earns its place; no sentence is filler.

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 paid, side-effectful generation tool with no output schema, the description covers return value (job id), polling path, card side effect, cost model and purchase-consent requirement – enough to invoke correctly. The remaining gap is the destructive/idempotency risk that annotations flag but the text does not unpack.

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 100%, so the baseline is 3, but the description adds real operational meaning on top: `estimate_only: true` is framed as the price-first step tied to a purchase confirmation, and the resolution choice must be named in the priced ask rather than carried over. The `idempotency_key` is tied to an external IDEMPOTENCY policy, which the schema alone does not convey.

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 names a specific verb and resource in concrete terms – 'The SAME clip with the prompt's changes applied; camera, timing and motion stay' – and gives example intents ('make it snow', 'put them in suits'). It distinguishes the operation from plain generation by emphasizing motion preservation, but it never explicitly contrasts with lookalike siblings such as `reshot_video`, `motion_control` or `extend_video`, so an agent must infer which rewrite tool to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit WHEN block defines the triggering intents (restyle or recast footage) and names a mandatory prerequisite step (`get_recipe` `restyle`). It also prescribes the full downstream workflow: wait via `wait_for_generation` with this id and `media`, never timers or background shells, and hand over the `url` if no card appeared. That is about as close to when/with-what/next-step guidance as a tool description gets.

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.