Skip to main content
Glama

Edit plan

edit_plan

Validate, dry-run, and apply structured editing plans to build a new timeline, then diff or explain the resulting changes.

Instructions

Build a whole edit from one plan. validate checks it; dry_run lists every step with its limits and gives a confirm_token; apply builds a NEW timeline ' AI vN' and compares it with the plan; diff compares any timeline; explain tells it in words. Examples: {"action":"validate","plan":{"meta":{"plan_version":"1.0","goal":"Short cut","video_type":"other"},"target":{"timeline_name":"Cut","fps":25,"width":1920,"height":1080},"sources":[{"id":"a","media_pool_uid":"mpi:1","fps":25,"license":{"type":"own"}}],"clips":[{"id":"c1","source":"a","src_in":0,"src_out":50,"record":0,"track":{"type":"video","index":1},"reason":"opening"}]}} | {"action":"schema"}

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "plan": {
        "meta": {
          "goal": "Short cut",
          "video_type": "other",
          "plan_version": "1.0"
        },
        "clips": [
          {
            "id": "c1",
            "track": {
              "type": "video",
              "index": 1
            },
            "reason": "opening",
            "record": 0,
            "source": "a",
            "src_in": 0,
            "src_out": 50
          }
        ],
        "target": {
          "fps": 25,
          "width": 1920,
          "height": 1080,
          "timeline_name": "Cut"
        },
        "sources": [
          {
            "id": "a",
            "fps": 25,
            "license": {
              "type": "own"
            },
            "media_pool_uid": "mpi:1"
          }
        ]
      },
      "action": "validate"
    },
    "name": "edit_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNoThe edit plan (see guide topic edit-plan)
actionYes
timelineNoHandle (tl:...) of the timeline to change, from list_timelines or state_snapshot.
plan_fileNoOr a .json file that holds the plan
confirm_tokenNoapply: from action=dry_run of exactly this plan

Output Schema

NameRequiredDescriptionDefault
okYes
errorNo
resultNo
statusYes
changesNo
dry_runNo
snapshotNo
warningsNo
backup_madeNo
destructiveNo
execution_idYes
verificationNo
confirm_tokenNo
plan_checksumNo
known_limitationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations only flag readOnly=false, destructive=false, idempotent=false; the description adds real context beyond that by disclosing that apply creates a NEW timeline named '<name> AI vN' rather than mutating in place, and that dry_run emits a confirm_token gating apply. It still leaves unclear what the 'timeline' handle does during apply and whether repeated applies pile up new timelines.

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

Conciseness3/5

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

The action list is dense and front-loaded, which is good. But the description then embeds a full literal plan JSON example plus a schema example, duplicating what the input schema's 'examples' array already contains — substantial bytes that do not add new information for an agent.

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?

With an output schema, annotation set, and 80% schema coverage already in place, the description covers the action semantics and the key behavioral outcome (new timeline creation). Complete enough to call correctly; the only real gap is omitted sibling routing guidance.

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

Parameters3/5

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

Schema coverage is 80%, so the schema already documents plan, timeline, plan_file and confirm_token. The description only reinforces the confirm_token provenance (dry_run of exactly this plan) and the derived timeline naming, adding little beyond what the schema and its parameter descriptions already say.

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?

Opens with a specific verb+resource ("Build a whole edit from one plan") and then enumerates the six actions so the agent knows the tool is a plan-pipeline, not a single mutation. It never contrasts itself with siblings such as timeline_edit or manage_timeline, so the boundary remains fuzzy, but the core purpose is unambiguous.

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?

The per-action glosses imply a workflow (validate checks, dry_run yields a confirm_token, apply then builds), which is useful implied guidance. However, there is no explicit statement of when to choose this tool over timeline_edit/manage_timeline, and no stated preconditions such as needing a confirm_token before apply beyond a terse mention.

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