Skip to main content
Glama

Set grade

set_grade

Modify a single DaVinci Resolve node's color grade by applying CDL slope/offset/power/saturation, LUT, labels, node color, enabled state, or cache; unspecified values keep their current settings.

Instructions

Change one node: brightness and color with CDL numbers (slope, offset, power, saturation), LUT, label, color, on/off, cache. Every change is read back. Values you leave out keep their current value. Look at the result with export_frame. Examples: {"item":"ti:1","slope":[1.1,1.0,0.95],"saturation":1.1} | {"item":"ti:1","lut":"resolve-studio-mcp/looks/slog3_to_rec709.cube"}

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": {
      "item": "ti:1",
      "slope": [
        1.1,
        1,
        0.95
      ],
      "saturation": 1.1
    },
    "name": "set_grade"
  }
}

Input Schema

NameRequiredDescriptionDefault
lutNoLUT or DCTL path relative to Resolve's LUT folder; '' removes it
itemNoTimeline clip or photo handle, or exact clip name; 'current' = clip under the playheadcurrent
nodeNo
cacheNo
colorNoNode color; '' removes it
labelNo
layerNo
powerNoCDL gamma per channel [r, g, b]; 1 = unchanged
scopeNoclip = the clip's own nodes, timeline = nodes for the whole timeline, group_pre/group_post = nodes of the clip's color groupclip
slopeNoCDL gain per channel [r, g, b]; 1 = unchanged
offsetNoCDL lift per channel [r, g, b]; 0 = unchanged
dry_runNotrue: only show the plan and get a confirm_token. false: do it, together with that token.
enabledNo
timelineNoHandle (tl:...) of the timeline to change, from list_timelines or state_snapshot.
saturationNo
confirm_tokenNoFrom the dry run of exactly this call. Works once, for five minutes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Beyond annotations it discloses two useful traits: every change is read back, and omitted values are preserved rather than reset. However, the most consequential behavior — that dry_run defaults to true and that the actual write requires a one-shot, five-minute confirm_token — appears only in the schema, so an agent reading just the description may expect the first call to mutate the project.

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 first sentences are front-loaded and dense with the writable-property list, followed by the merge and verification semantics. The two JSON examples are long but earn their place by fixing call shape for two common cases; nothing is padding.

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 16-parameter, multi-scope mutation tool with no output schema and no read-back format described, the description covers purpose and verification but omits the two-phase dry-run/confirm workflow and the scope/layer/timeline targeting dimensions. It is adequate only because the schema descriptions carry those details.

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?

With 63% schema coverage across 16 parameters, the description adds real meaning by grouping the CDL controls as 'brightness and color' and by supplying two worked examples that show the item handle format ('ti:1') and the LUT path style. It does not cover scope, layer, timeline, or the dry_run/confirm_token pairing in prose, leaving those 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 scope: 'Change one node', then enumerates exactly which grade properties are writable (CDL slope/offset/power/saturation, LUT, label, color, on/off, cache). It does not explicitly name get_grade as the read counterpart, so the differentiation from siblings is implicit rather than stated.

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?

It gives a clear post-call workflow ('Look at the result with export_frame') and states the partial-update contract ('Values you leave out keep their current value'), which tells an agent it can make targeted edits. It does not name any when-not conditions or a sibling to use for reading the current grade.

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