Skip to main content
Glama

set_expression

Idempotent

Set a per-frame TCL expression on a Nuke node knob to drive animated values, with regex pre-flight blocking forbidden Python or TCL system calls.

Instructions

Set a TCL expression on a knob. The expression is evaluated per-frame.

Common expressions: frame, frame/24.0, sin(frame*0.1), [value other_node.knob]

A regex pre-flight rejects expressions that wrap forbidden Python calls in [python ...] callouts or invoke TCL system/exec/ unlink directly.

Args: node: node name. knob: knob name to set expression on. expression: Nuke TCL expression string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
knobYesknob name to set expression on.
nodeYesnode name.
expressionYesNuke TCL expression string.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the description need not cover repeatability or safety classification. It adds useful behavioral context beyond annotations: per-frame evaluation and a regex pre-flight rejecting forbidden Python/TCL calls.

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-loads the purpose and behavior, then provides examples and restrictions. The Args section repeats the schema descriptions verbatim, which is slightly redundant, but the overall structure is efficient and readable.

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 a setter tool with no output schema and full schema coverage, the description covers purpose, expression format, security behavior, and parameter meanings. It could mention clearing expressions via the sibling clear_expression, but otherwise an agent has enough to call it correctly.

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 description coverage is 100%, so the baseline is 3. The description adds meaning beyond the schema by giving concrete TCL expression examples (frame, frame/24.0, sin(frame*0.1)) and noting security restrictions on expression content.

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: 'Set a TCL expression on a knob,' and clarifies per-frame evaluation. This clearly distinguishes it from sibling tools like set_knob and clear_expression.

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?

Provides common expression examples and security restrictions, which imply usage context, but does not explicitly say when to use this tool versus set_knob or clear_expression. No exclusions or alternative routing are given.

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