Skip to main content
Glama

Set item

set_item

Change timeline clip settings in DaVinci Resolve—enable/disable, rename, move, trim, crop, adjust opacity, blend, speed, fades, color, flags, and cache—with dry-run confirmation before applying.

Instructions

Change timeline clips: on/off, name, zoom, position, crop, opacity, blend mode, speed, fades, trims, track and position, color, flags, cache. Everything is read back. On clips with keyframes the keyframes win: check with export_frame.

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": {
      "items": "<items>"
    },
    "name": "set_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
itemsYesTimeline clip handles; ['selected'] = selected clips, ['current'] = clip under the playhead.
trackNoMove the clip to this track number
dry_runNotrue: only show the plan and get a confirm_token. false: do it, together with that token.
enabledNo
fade_inNoFrames
fade_outNoFrames
timelineNoHandle (tl:...) of the timeline to change, from list_timelines or state_snapshot.
trim_endNoNew right handle in frames: larger cuts more from the end
add_flagsNo
clip_colorNo'' removes the color
propertiesNoInspector values, e.g. {ZoomX: 1.2, ZoomY: 1.2, Pan: 100, Tilt: 0, RotationAngle: 5, CropLeft: 50, Opacity: 80, CompositeMode: 'screen', AudioVolume: -6}. Names as in get_item. All are applied, or none.
trim_startNoNew left handle in frames: larger cuts more from the start
clear_flagsNo
color_cacheNo
start_frameNoMove the clip to this timeline frame
fusion_cacheNo
confirm_tokenNoFrom the dry run of exactly this call. Works once, for five minutes.
speed_optionsNo{PitchCorrection, StretchKeyframesToFit, RippleTimeline}
speed_percentNo100 = normal, 50 = half speed, 0 = freeze frame
burn_in_presetNo
output_blankingNo{Top, Bottom, Left, Right} in pixels; {} = follow the timeline

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 already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=false, so the safety profile is covered. The description adds real context beyond that: "Everything is read back" (post-write verification) and the keyframe precedence rule, which an agent cannot infer from annotations. It does not disclose the atomicity or the confirm-token expiry, but those live in the schema.

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 short sentences, front-loaded with the verb and the affected attributes, then the two behavioral caveats. The attribute enumeration is dense but informative rather than redundant. No filler or hedging.

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?

For a 22-parameter mutation tool with nested objects and no output schema, the description covers the what and two behavioral caveats but omits the dry-run confirmation workflow, idempotency expectations, and how partial failures interact with the "all are applied, or none" guarantee. Adequate to call correctly, not complete.

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 description coverage is 68%, above the midpoint, so the schema already carries most parameter meaning (items handles, dry_run, confirm_token, trim semantics, speed_percent). The description contributes only the verification and keyframe-precedence behavior, not per-parameter detail such as the all-or-nothing application of `properties` or the relationship between dry_run and confirm_token.

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?

States a specific verb ("Change") and resource ("timeline clips") and enumerates the mutable surface: name, zoom, crop, opacity, blend mode, speed, fades, trims, track, color, flags, cache. That is far more concrete than a name restatement, and the export_frame pointer hints at the read-side sibling. It stops short of explicitly distinguishing itself from get_item or set_grade, so it is clear but not sibling-differentiating.

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?

One genuinely useful usage rule is given: on clips with keyframes "the keyframes win", so check with export_frame first. The dry_run/confirm_token two-phase flow is implied by the schema defaults but not spelled out as a workflow in the description. No guidance on when to use this versus get_item, set_grade, or clip_effects.

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