Skip to main content
Glama

fusion_set_expression

Set a SimpleExpression on a Fusion node input to drive parameter values with formulas such as time/24 or Text1.Size*2, enabling calculated animation and adjustments.

Instructions

Set a SimpleExpression on a node input (e.g. 'time/24', 'Text1.Size*2').

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": {
      "node": "<node>",
      "input": "<input>",
      "expression": "<expression>"
    },
    "name": "fusion_set_expression"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeYes
inputYes
itemIdNoTimeline item unique id (from timeline_get_clips)
sourceNoitem
timelineNoTimeline name or id (default: current timeline)
compIndexNo
itemIndexNo1-based position of the clip on the track (transitions are not counted)
trackTypeNovideo
expressionYes
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

B3.2/5.0
Behavior3/5

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

The annotations declare a non-read-only, non-destructive, closed-world mutation, and 'Set' is consistent with that. The description adds useful SimpleExpression syntax examples, but it does not say whether an existing expression is overwritten, what errors occur for invalid expressions, or how node/input resolution works.

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?

The definition is a single efficient sentence with no wasted wording. The core action is front-loaded, and the examples are compact and useful.

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

Completeness2/5

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

This is a 10-parameter mutation with two addressing modes and only 30% schema description coverage, yet the description does not explain how to scope the target node or timeline item. The output schema means return values need not be described, but the targeting complexity is not adequately covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 30% across 10 parameters. The description adds meaning only for the expression parameter via examples, while the target-addressing parameters such as source, timeline, compIndex, itemIndex, trackType, and trackIndex are left undocumented in both the description and most of 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 states a specific verb and resource: setting a SimpleExpression on a node input. The examples ('time/24', 'Text1.Size*2') clarify what an expression looks like here, but the description does not explicitly distinguish this from fusion_set_node_input or fusion_set_keyframe.

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 verb 'Set a SimpleExpression' implies usage for expression-driven input values rather than static values, but the description gives no explicit when-to-use guidance versus fusion_set_node_input or fusion_set_keyframe. There are no exclusions or prerequisites stated.

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