Skip to main content
Glama

Set sequence

timeline.set_sequence
Idempotent

Change resolution, frame rate or audio format. Clip times are kept in time, so they survive a rate change. Each picture is refitted to the new shape by its fit (contain by default, which leaves bars where the shapes differ); the result warns how many clips no longer fill the frame, and clip.set_transform {fit: "cover"} fills it. Returns the new timeline_id (edit that one next), what changed, and where each changed clip now sits.

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": {
      "sequence": "<sequence>",
      "timeline_id": "<timeline_id>"
    },
    "name": "timeline.set_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
previewNoinline: image in the result; link: URI that renders on read; nonelink
sequenceYes
timeline_idYesTimeline handle; every edit returns a new one

Output Schema

NameRequiredDescriptionDefault
parentYesThe version this edit started from
changedYesWhat the edit added, removed or modified; a clip or transition says its track and where it now sits (frames, end exclusive)
clip_idNoThe clip this edit made or acted on (each tool says which)
previewYes
clip_idsNoEvery clip this edit made or acted on, linked ones included (each tool says which)
track_idNo
warningsYes
timeline_idYesThe new version: edit this one next (older ids stay valid)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / changed / description
      Added value: +"What the edit added, removed or modified; a clip or transition says its track and where it now sits (frames, end exclusive)"
    • addedOutput schema / properties / clip_id / description
      Added value: +"The clip this edit made or acted on (each tool says which)"
    • addedOutput schema / properties / clip_ids / description
      Added value: +"Every clip this edit made or acted on, linked ones included (each tool says which)"
    • changedOutput schema / properties / parent / description
      Previous value: -"Timeline handle; every edit returns a new one"New value: +"The version this edit started from"
    • changedOutput schema / properties / timeline_id / description
      Previous value: -"Timeline handle; every edit returns a new one"New value: +"The new version: edit this one next (older ids stay valid)"
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: clip times are preserved across rate changes, pictures are refitted by their fit with 'contain' as the default leaving bars, and a warning reports how many clips no longer fill the frame. It also discloses the immutable-handle consequence ('Returns the new timeline_id (edit that one next)'), which is exactly the kind of non-obvious contract the annotations (idempotent, non-destructive) cannot convey.

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?

Front-loaded with the action and settings affected, then the side effects, then the return contract — a sensible order. The prose is dense with semicolons and parentheticals, which reduces scannability for a four-clause sentence.

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 mutation tool with nested sequence params and an output schema, the description covers the important non-obvious parts: time preservation, refit behavior and its default, the frame-fill warning, and the new timeline handle. It does not need to enumerate return fields because an output schema exists, so remaining gaps are minor.

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 67% and the description maps loosely onto the settings ('resolution' → width/height, 'frame rate' → fps, 'audio format' → channels/audio_rate) without adding format, range, or constraint detail. The 'fit' mentioned is a clip property, not a parameter of this tool, so agents still rely on the schema for actual input semantics.

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: 'Change resolution, frame rate or audio format' describes exactly which sequence properties are altered, and it clarifies that this is the same timeline re-sequenced, not a new one. It names clip.set_transform as the sibling used for the follow-up fix, though it does not contrast with timeline.create which an agent might confuse for sequence setup.

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?

Gives a clear trigger (rate/format/shape change) and an explicit hand-off to clip.set_transform {fit: "cover"} when bars remain, which is genuine routing guidance. It lacks an explicit when-not clause (e.g., that creating a timeline from scratch is timeline.create).

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.