Skip to main content
Glama

set_light

Idempotent

Light a shot by applying a lighting preset and/or setting ambient color, level, or individual lights; manual changes create a custom look.

Instructions

Light a shot (shot_id, or scene + shot; left out: the shot on screen): a lighting preset (the style's moods), and/or the ambient colour and level, and single lights. Any hand change makes it a custom look. Ids must come from the current style: call library to see them (a wrong id is refused with the valid list). Returns the lighting. One undo step for the person. To change the light over time, use set_keyframes (scene:light or light:).

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": "set_light"
  }
}

Input Schema

NameRequiredDescriptionDefault
shotNoShot index from 0 inside that scene (with scene; alone: in the scene on screen). A shot id works here too.
levelNoAmbient level, 0 to 1.2.
sceneNoScene index from 0 (with shot). Used when shot_id isn't given.
presetNoLighting preset id (library lights).
ambientNoAmbient colour, "#RRGGBB".
shot_idNoThe shot's id from get_project. Or give scene and shot instead. Left out: the shot on screen.
add_lightNoAdd one light.
change_lightNoChange one light.
remove_lightNoLight id to remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that id validation failures are refused with the valid list, that "any hand change makes it a custom look" (a lasting state effect), that it returns the lighting, and that the whole call collapses into one undo step for the user. Those are exactly the mutation-side facts annotations (readOnly=false, idempotent=true, destructive=false) 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 target, and every clause carries information (ids, refusal behavior, undo, alternative). It is dense with stacked parentheticals, though, which makes the target-resolution rule slower to parse than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter mutation with no output schema, the description covers targeting, id provenance, error behavior, return value, and undo granularity — everything an agent needs to call it correctly. The fine-grained geometry/colour ranges are already fully documented in the nested schemas.

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 100%, so baseline is 3, but the description adds real meaning: the target can be given as shot_id or scene+shot with a fallback to the on-screen shot, and the preset is characterized as "the style's moods" tied to the current style's library. It adds little about the add/change/remove_light objects beyond what their nested schemas already say.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — lighting a shot's light — and enumerates the three axes it controls (preset style moods, ambient colour/level, single lights). It also explicitly names the sibling it is not (set_keyframes for animated light), so an agent can discriminate without opening schemas.

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 concrete routing advice ("To change the light over time, use set_keyframes (scene:light or light:<id>)") and a prerequisite workflow (ids come from the current style, call library to list them). It does not clarify when to prefer a preset vs. hand-built ambient/lights, but the "and/or" framing implies they compose.

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