Skip to main content
Glama

happyhorse_edit_video

Edits a source video from a public URL using text instructions and optional reference images while keeping the original duration and aspect ratio.

Instructions

Edit a source video using text and optional reference images.

Duration and aspect ratio follow the source video. Editing is billed by the combined input and output video duration, not the compatibility duration argument.

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

Input Schema

NameRequiredDescriptionDefault
seedNoOptional reproducibility seed.
modelNoVideo-edit model. Currently happyhorse-1.0-video-edit.happyhorse-1.0-video-edit
ratioNoIgnored compatibility parameter: editing inherits the source video aspect ratio.16:9
promptYesInstructions describing the desired changes.
durationNoIgnored compatibility parameter: editing inherits the source video duration.
video_urlYesPublic URL of the source video to edit.
watermarkNoWhether to add a Happy Horse watermark.
image_urlsNoOptional style or subject reference images, up to five.
resolutionNoOutput resolution: 720P or 1080P.1080P
callback_urlNoOptional webhook URL. Omit it to receive a task ID for polling.
audio_settingNoAudio policy: auto, or origin to preserve the source audio.auto

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.6
    • addedInput schema / properties / duration / deprecated
      Added value: +true
    • changedInput schema / properties / duration / description
      Previous value: -"Output duration in seconds, from 3 through 15."New value: +"Ignored compatibility parameter: editing inherits the source video duration."
    • addedInput schema / properties / ratio / deprecated
      Added value: +true
    • changedInput schema / properties / ratio / description
      Previous value: -"Output aspect ratio: 16:9, 9:16, 1:1, 4:3, or 3:4."New value: +"Ignored compatibility parameter: editing inherits the source video aspect ratio."
  2. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / duration
      Added value: +{
      +  "default": 5,
      +  "description": "Output duration in seconds, from 3 through 15.",
      +  "maximum": 15,
      +  "minimum": 3,
      +  "title": "Duration",
      +  "type": "integer"
      +}
    • addedInput schema / properties / ratio
      Added value: +{
      +  "default": "16:9",
      +  "description": "Output aspect ratio: 16:9, 9:16, 1:1, 4:3, or 3:4.",
      +  "enum": [
      +    "16:9",
      +    "9:16",
      +    "1:1",
      +    "4:3",
      +    "3:4"
      +  ],
      +  "title": "Ratio",
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description usefully discloses non-obvious behavior: duration and aspect ratio inherit from the source, and billing is based on combined input and output video duration rather than the compatibility duration argument. It does not cover async/polling behavior or whether the source video is mutated versus leaving it unchanged, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is three tight sentences with the core purpose front-loaded and no unnecessary wording. The billing and inheritance notes are compact and directly relevant to correct invocation.

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?

Given the 11 parameters, full schema coverage, and an output schema, the description supplies the key behavioral context an agent needs: editing an existing video, optional reference images, inherited duration/ratio, and billing semantics. It leaves some operational details to the schema, such as callback/polling behavior and audio handling, which is acceptable here.

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 description coverage is already 100%, so the schema carries parameter documentation. The description adds meaningful semantic context by clarifying that duration and aspect ratio are compatibility arguments that follow the source video and do not control billing, which is more than the schema alone states.

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 states a specific verb and resource: 'Edit a source video using text and optional reference images.' This clearly distinguishes the tool from its generate-video siblings, which create videos rather than edit an existing source.

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?

The description makes the usage context clear by specifying an existing source video plus text and optional reference images. It does not explicitly name when to use a sibling such as happyhorse_generate_video instead, but the edit-versus-generate distinction is clear from the purpose.

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