Skip to main content
Glama

Edit a draft

autoshort_update_draft
Destructive

Change a draft before render. Free. Every scene number refers to the draft as it is now (1-based); operations apply in the order edits, reorder, remove, insert. edits: change a scene's narration (verbatim), visual (null clears it → auto image), seconds, speaker or voice (null = the narrator). insert: add scenes after scene N (0 = at the start). remove: scene numbers to drop. reorder: every current scene number in the new order. promptHandling switches "use my words exactly" on or off. Returns the updated draft — show it to the user again.

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": {
      "draftId": "<draftId>"
    },
    "name": "autoshort_update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsNo
titleNoHeadline shown over the first 1.5s and used as the video title. Defaults to the first sentence.
insertNo
removeNo
draftIdYes
reorderNo
artStyleNoVisual style; see autoshort_list_niches. Default AUTOSHORTS (cinematic photography).
languageNoBCP-47 narration language ("en", "vi", …). Omit to detect it from the narration.
aspectRatioNoFrame of the rendered video: "9:16" vertical (default; Shorts/TikTok/Reels), "16:9" landscape (YouTube, film), "1:1" square. Images are generated in this shape and the video renders in it. 16:9 and 1:1 skip the automatic music bed and punch-in polish (vertical only).
promptHandlingNopromptHandling: "assist" (default) or "as_written". "as_written" = Use my words exactly. If the model refuses a scene, it fails instead of being reworded. It applies to the picture text you wrote; scenes you wrote nothing for are still written by AutoShort, and the answer says which (writtenBy). A refused scene fails with the image model's reason and the credits for what was not made are refunded.
targetDurationNoRequested length in seconds. Kept as requested — if the verbatim narration cannot fit it, warnings[] says so with a word count that would.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / promptHandling
      Added value: +{
      +  "description": "promptHandling: \"assist\" (default) or \"as_written\". \"as_written\" = Use my words exactly. If the model refuses a scene, it fails instead of being reworded. It applies to the picture text you wrote; scenes you wrote nothing for are still written by AutoShort, and the answer says which (writtenBy). A refused scene fails with the image model's reason and the credits for what was not made are refunded.",
      +  "enum": [
      +    "assist",
      +    "as_written"
      +  ],
      +  "type": "string"
      +}
  2. Changed6 schema fields changed
    • addedInput schema / properties / aspectRatio / description
      Added value: +"Frame of the rendered video: \"9:16\" vertical (default; Shorts/TikTok/Reels), \"16:9\" landscape (YouTube, film), \"1:1\" square. Images are generated in this shape and the video renders in it. 16:9 and 1:1 skip the automatic music bed and punch-in polish (vertical only)."
    • addedInput schema / properties / edits / items / properties / speaker
      Added value: +{
      +  "description": "Who speaks the scene; null = the narrator.",
      +  "maxLength": 40,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / edits / items / properties / voice
      Added value: +{
      +  "description": "Google voice name for this scene; null = the video's voice.",
      +  "maxLength": 64,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / insert / items / properties / clip_id
      Added value: +{
      +  "description": "Film assembly: the id of one of YOUR finished motion clips (autoshort_generate_motion_clip, status COMPLETED). The scene plays that clip (held on its last frame or trimmed to the narration) with this scene's narration/dialogue and captions over it. No extra credits, never regenerated. Not together with image_url.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
    • addedInput schema / properties / insert / items / properties / speaker
      Added value: +{
      +  "description": "Who speaks this scene's narration, e.g. \"Narrator\", \"Nhược Ly\", \"Tần Phong\". A label shown back in the draft; omit for the narrator.",
      +  "maxLength": 40,
      +  "type": "string"
      +}
    • addedInput schema / properties / insert / items / properties / voice
      Added value: +{
      +  "description": "The voice that reads THIS scene: a Google voice name from autoshort_list_options voices.list, e.g. \"vi-VN-Chirp3-HD-Charon\" (male) or \"vi-VN-Chirp3-HD-Aoede\" (female). Use one voice per character and keep it on every line that character speaks; omit for the video's narrator voice. Free (no extra credits). ElevenLabs ids are not accepted per scene.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered. The description adds genuinely useful behavior the annotations cannot convey: the tool is free, operations are applied in a fixed order (edits, reorder, remove, insert), and null values actively clear fields ("visual (null clears it → auto image)"), which tells the agent exactly what gets destroyed. It stops short of permissions, limits, or failure modes beyond the promptHandling refusal note.

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 operation-ordering rule and the per-operation key explanations are front-loaded and dense with no filler sentences. A couple of phrases restate schema content, notably "promptHandling switches 'use my words exactly' on or off," which the enum description already covers, but overall the length is justified by the 11-parameter surface.

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?

For an 11-parameter mutation tool with nested edit/insert objects and no output schema, the description covers the essentials: mutation semantics, operation ordering, null-clearing behavior, cost, and the fact that the updated draft is returned and should be shown to the user. The remaining parameters are documented in the schema, so nothing an agent needs to call this correctly is missing.

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 only 55%, so the description must carry weight here — and it does, especially the non-obvious ordering rule that scene numbers are 1-based against the current draft and that edits/reorder/remove/insert apply in a fixed sequence. It also documents the semantics of remove and reorder, whose array items have no schema descriptions at all, and clarifies the insert anchor (0 = at the start). It leaves several parameters (title, artStyle, language, aspectRatio, targetDuration) entirely to the schema.

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 opens with a specific verb and resource ("Change a draft") plus a pipeline constraint ("before render"), which separates it from read-only siblings like autoshort_get_draft and from autoshort_render_draft. It does not explicitly name or contrast any sibling, so an agent must rely on names alone to rule out alternatives such as autoshort_update_series.

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

Usage Guidelines3/5

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

"before render" and "show it to the user again" imply where this sits in the draft→render workflow, which is real usage context. However, there is no explicit when-not guidance, no mention of how this differs from editing a series, and no stated prerequisites (e.g., needing an existing draftId from autoshort_draft_video).

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.

Resources