Skip to main content
Glama

photo_set_cdl

Applies a primary ASC CDL correction (slope, offset, power, saturation) to a photo and saves a grade version first.

Instructions

Primary correction on a photo via ASC CDL (slope/offset/power/saturation). A grade version is saved first.

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": {
      "photo": "<photo>"
    },
    "name": "photo_set_cdl"
  }
}

Input Schema

NameRequiredDescriptionDefault
albumNoAlbum name or id (default: current album)
photoYesPhoto name, id or 1-based index in the album
powerNo
slopeNo
offsetNo
nodeIndexNo
saturationNo

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

B3.4/5.0
Behavior3/5

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

Annotations already establish that this is a non-read-only, non-destructive mutation, so the description does not need to restate safety. It does add one genuinely useful behavioral fact beyond annotations: a grade version is saved first, implying undo/versioning. It says nothing about whether the CDL replaces existing corrections, is cumulative, or requires prior grade state.

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 with zero filler, and the key operational fact (version saved first) placed where it will be read immediately. Nothing is repeated from the tool name or schema.

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?

An output schema exists, so return values need not be described. For a seven-parameter color tool, the description covers the operation, the color model, and the versioning side effect — enough to call it correctly; only the parameter-level meaning of the CDL vectors and nodeIndex is left uncovered.

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 only 29%, so the description is expected to compensate. It expands the acronym into slope/offset/power/saturation (matching four of the seven parameters), but explains none of them: no effect, units, or the fact that saturation is bounded 0–4, and nodeIndex/album/photo receive no attention beyond 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?

Names a specific operation (primary correction) on a specific resource (a photo) using a named method (ASC CDL with slope/offset/power/saturation). An agent can tell this apart from generic photo_edit or photo_apply_grade, though the description never explicitly contrasts itself with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use statement. The word 'primary' hints that this is a base correction rather than a look/grade, but the description never tells the agent to prefer this over photo_adjust_exposure/saturation/contrast or photo_apply_grade, nor does it state prerequisites.

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