Skip to main content
Glama

bind_variable_to_node

Destructive

Bind variables to Figma node properties like fill color, dimensions, spacing, and opacity to drive dynamic design values.

Instructions

Bind a local variable to a node property, so the property is driven by the variable's value. Use 'fillColor' to bind a COLOR variable to the node's fill color. Use other fields (opacity, width, height, cornerRadius, itemSpacing, paddingTop, paddingRight, paddingBottom, paddingLeft) for FLOAT variables.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldYesProperty to bind: fillColor | opacity | width | height | cornerRadius | itemSpacing | paddingTop | paddingRight | paddingBottom | paddingLeft
nodeIdYesTarget node ID in colon format e.g. 4029:12345
variableIdYesVariable ID to bind (from get_variable_defs)
Behavior4/5

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

Annotations already indicate this is destructive and not read-only. The description adds valuable behavioral context not in annotations: the type constraints (COLOR vs FLOAT) and the ongoing 'driven by' relationship. Minor gap in not explaining the idempotentHint: false behavior.

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 sentences with zero waste. The first states the binding concept, the second provides the field-type mapping. Information is front-loaded and every word earns its place.

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?

Given the 3-parameter input with full schema coverage and available annotations, the description adequately explains the binding mechanism and type constraints. No output schema exists to describe. Slight deduction for not clarifying overwrite behavior implied by idempotentHint: false.

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

Parameters5/5

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

Despite 100% schema coverage, the description adds essential semantic information: it clarifies that fillColor accepts COLOR variables while all other fields accept FLOAT variables. This type system knowledge is critical and absent from the schema's mere enumeration of valid strings.

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?

The description explicitly states the core action ('Bind a local variable to a node property') and the mechanism ('property is driven by the variable's value'), clearly distinguishing this from siblings like create_variable or set_variable_value.

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?

Provides specific guidance on field selection based on variable type (COLOR for fillColor, FLOAT for others), which is crucial for correct usage. However, it lacks explicit contrast with alternatives like set_variable_value (static value assignment vs. dynamic binding).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vkhanhqui/figma-mcp-go'

If you have feedback or need assistance with the MCP directory API, please join our Discord server