Skip to main content
Glama

color_set_cdl

Apply an ASC CDL primary correction to a color node using slope, offset, power, and saturation values to adjust a clip's look programmatically.

Instructions

Apply an ASC CDL to a node: slope (≈ gain), offset, power (≈ inverse gamma), saturation. This is the scriptable primary correction.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "color_set_cdl"
  }
}

Input Schema

NameRequiredDescriptionDefault
powerNo
slopeNo
itemIdNoTimeline item unique id (from timeline_get_clips)
offsetNo
preserveNoCreate a new local grade version first so the previous grade can be restored
timelineNoTimeline name or id (default: current timeline)
itemIndexNo1-based position of the clip on the track (transitions are not counted)
nodeIndexNo1-based color node index
trackTypeNovideo
saturationNo
trackIndexNo

Output Schema

NameRequiredDescriptionDefault
okYesTrue only when DaVinci Resolve confirmed the operation.
dataNo
toolYes
errorNo
sourceNoWhere the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone.
statusYes
messageYes
warningsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is known without the description. The description adds useful domain interpretation of the four CDL parameters but says nothing about what happens to an existing grade, that a new version is made (the schema's 'preserve' flag handles this), or about node/timeline targeting scope. No contradiction with annotations.

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?

Two short sentences, zero filler, with the core action and its parameter semantics front-loaded before the positioning statement. Nothing in it could be removed without losing information.

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 an 11-parameter tool the description correctly identifies the target ('to a node') and fully explains the four value-bearing parameters, while an output schema exists so return values need no explanation. The main gap is that it does not discuss the preserve/versioning behavior or the clip/track resolution path, which matters for a mutation with that many targeting parameters.

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 45%, and several core parameters (slope, offset, power, saturation) have no schema descriptions at all; the description compensates by mapping them to familiar grading concepts ('slope (≈ gain)', 'power (≈ inverse gamma)'), which genuinely adds meaning an agent would not get from the schema alone. The remaining targeting parameters (itemId, timeline, nodeIndex, trackType) are largely covered by schema descriptions, so this is above baseline without being exhaustive.

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 gives a specific verb and resource ('Apply an ASC CDL to a node') and enumerates the four CDL components it controls (slope, offset, power, saturation). It implicitly separates itself from the single-property siblings (color_set_gain, color_set_gamma, color_set_lift, color_set_offset) by calling itself the combined 'primary correction', but it never names an alternative explicitly.

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 phrase 'This is the scriptable primary correction' hints at when to prefer this over the individual per-channel setters, but the guidance is implied rather than stated. There is no explicit when-to-use/when-not-to-use rule and no mention of prerequisites such as an existing node or a selection context.

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

Deploy Server

Other Tools