Skip to main content
Glama
FigeloMCP
by mmonzera

bind_variable

Binds a Figma variable to a node field like fill, stroke, spacing, radius, opacity, or dimensions, keeping design values linked and consistent.

Instructions

Bind a Figma variable to a node field (fill, stroke, width, height, itemSpacing, paddingTop, paddingRight, paddingBottom, paddingLeft, topLeftRadius, opacity, etc.).

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": {
      "nodeId": "<nodeId>",
      "variableId": "<variableId>",
      "field": "<field>"
    },
    "name": "bind_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldYesTarget property e.g. fill, stroke, itemSpacing, paddingLeft, topLeftRadius, width
nodeIdYesTarget node ID
channelNoOptional Figma document channel, fileKey, or documentName when multiple Figma files are open
paintIndexNoPaint index when field is fill or stroke (default 0)
variableIdYesVariable ID to bind

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and does not meet it. It does not state whether binding replaces existing paints at the given index, what happens if the field is already bound, whether the node or variable must already exist, or why the optional channel parameter matters when several files are open.

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?

A single front-loaded sentence with the core action stated first and examples trailing. Reasonably tight, though the long parenthetical field list is partly redundant with the schema and could have been spent on behavior instead.

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?

A five-parameter mutation tool with no annotations and no output schema needs the description to explain side effects and failure modes, and this one does not. The underspecified pieces are the optional channel and paintIndex parameters, whose significance an agent cannot derive from the one-liner.

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 100%, so all five parameters are already documented in structured form; the description's field list largely duplicates the schema's field examples. Baseline 3 applies, since it adds no semantics beyond what the schema provides (e.g., how paintIndex interacts with existing fills).

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?

Uses a specific verb+resource ('Bind a Figma variable to a node field') and enumerates the target fields, so an agent knows exactly what operation is performed. It stops short of differentiating itself from siblings like set_variable_value (which changes a variable's value) or create_variable, leaving the distinction implicit.

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?

There is no explicit when-to-use guidance, no prerequisites, and no named alternative. The field enumeration hints at the domain, but an agent must infer that this is the tool for linking an existing variable to a node property rather than for editing variable values.

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