Skip to main content
Glama

Edit a video

edit_video

Change a short video with words: swap the subject, outfit, setting, style or weather while keeping the motion. OAuth uses site credits (from 127 credits per second with the default model). API keys use a separate USD wallet. Omit approval to get a quote, then confirm max_credits for OAuth or currency USD and decimal max_usd for API keys.

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

Input Schema

NameRequiredDescriptionDefault
modelNoOptional model that can edit videos (list_models with category video shows them). Leave empty for the default, Kling O3.
promptYesWhat to change, in plain words: the subject, outfit, setting, style or weather. What you don't mention stays the same.
max_usdNoAPI key only: maximum approved USD as a decimal string with up to 9 fractional digits. Set currency to USD. Only set after the user confirms the quoted cost_usd. Never convert max_credits.
currencyNoBilling unit: USD for API keys; credits for OAuth (optional for existing OAuth clients).
video_urlYesThe clip to change (3 to 10 seconds works best): a popnow:// link from an earlier result, or a public https link.
max_creditsNoOAuth only: the most site credits the user agreed to spend on this. Only set it after the user confirmed a quoted price.
production_idNoOptional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.
reference_image_urlsNoOptional reference pictures (https or popnow:// links) for a new character, outfit, object or place.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / production_id
      Added value: +{
      +  "description": "Optional. Run this inside a production opened with open_production: it is paid from that production's budget and needs no separate approval while the budget lasts.",
      +  "type": "string"
      +}
    • changedInput schema / properties / reference_image_urls / type
      Previous value: -[
      -  "null",
      -  "array"
      -]New value: +"array"
  2. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations declare mutation (readOnlyHint=false), non-idempotency, and open-world scope, but say nothing about cost. The description carries that burden well, disclosing per-second pricing (from 127 credits/sec), two separate billing rails, and a required two-step quote-then-confirm approval flow before spend. That is genuine value beyond the annotations, though it says nothing about what the call returns or how long an edit takes.

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?

Three sentences, no filler, and the capability statement is front-loaded ahead of the billing and approval mechanics. The final sentence is dense with nested conditionals (OAuth vs API key, quote vs approval) but each clause carries load-bearing information, so nothing is wasteful.

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?

With 8 parameters, 100% schema coverage, and no output schema, the missing piece is the return contract: nothing tells the agent whether an approved call returns a popnow:// link immediately or a job to poll. Coverage of cost, auth, and approval prerequisites is strong, but the result shape and failure/latency behavior are 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 100%, so the baseline is 3 and the schema already documents every field. The description still adds sequencing semantics the schema cannot express: max_credits and max_usd must only be set after the user confirms a quote, and the currency choice is tied to the auth mode. That elevates it above 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 opens with a specific verb and resource ('Change a short video with words') and enumerates exactly what can be swapped (subject, outfit, setting, style, weather) while constraining that the motion is preserved. That 'keeping the motion' clause is the operative distinction from generative siblings like create_video and reframe_video, so an agent can classify the tool without opening the schema.

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 gives concrete procedural guidance: omit approval to get a quote, then confirm max_credits for OAuth or currency/max_usd for API keys. It also states the billing split between OAuth credits and API key USD wallet, which is real when-to-use context. It stops short of naming an alternative sibling (e.g., edit_video_region for localized changes), so 4 rather than 5.

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.