Skip to main content
Glama
atezer

F-MCP (Figma MCP Bridge)

by atezer

figma_bind_variable

Destructive

Bind a library variable to a node property like fills, strokes, or spacing by providing the variable key and target property. The node updates automatically when the design token changes.

Instructions

Import a library variable by key and bind it to a node property. For colors: binds to fills or strokes via setBoundVariableForPaint. For spacing/sizing: binds via setBoundVariable (paddingLeft, itemSpacing, cornerRadius, etc.). Get variableKey from figma_get_library_variables. The node's fill/spacing will dynamically update when the DS token changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
figmaUrlNoFigma file URL for routing.
fileKeyNoTarget a specific connected file.
nodeIdYesTarget node ID
variableKeyYesVariable import key from figma_get_library_variables
propertyYesNode property to bind the variable to
paintIndexNoFor fills/strokes: which paint index (default 0)
Behavior4/5

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

The annotation already indicates destructiveHint: true, and the description adds value by disclosing internal methods (setBoundVariableForPaint, setBoundVariable) and explaining the dynamic update behavior when the design token changes. This goes beyond the annotation.

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 description is concise (3 sentences) and front-loaded with the main action. Each sentence adds essential information without redundancy. It efficiently covers the primary behavior, categories, prerequisite, and outcome.

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 tool's moderate complexity and absence of an output schema, the description adequately covers the binding behavior, property categories, and dynamic updates. It could be improved by addressing error cases (e.g., invalid variable key) but overall is sufficiently complete.

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?

Since schema description coverage is 100%, the description adds limited new meaning beyond the schema. It provides context for property categories (colors vs spacing) and references the prerequisite, but the core parameter semantics are fully covered by the schema.

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 clearly states the action ('import a library variable by key and bind it to a node property') and specifies the resource (node property). It distinguishes from sibling tools like figma_get_library_variables by explaining the prerequisite and from other variable manipulators by focusing on binding to properties.

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 description mentions a prerequisite ('Get variableKey from figma_get_library_variables') but does not provide explicit guidance on when to use this tool versus alternatives (e.g., figma_update_variable or directly setting properties). It implicitly suggests usage for binding design tokens to node properties, but lacks exclusion criteria.

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/atezer/FMCP'

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