Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_get_variable_defs

figma_get_variable_defs

List local variable collections and variables, or pass a nodeId to show every variable bound to that node, including library variables.

Instructions

List local variable collections and variables. With nodeId, instead lists every variable bound under that node, including library (remote) variables.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "figma_get_variable_defs"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses that nodeId mode reaches beyond the local file to include library (remote) variables, which is non-obvious behavior. It does not describe the return shape, whether modes/values are included, or pagination/size limits, leaving material gaps for a no-annotation tool.

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 short sentences, front-loaded with the default behavior and immediately followed by the conditional mode. No redundant restatement of the tool name or filler.

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?

With one optional parameter, no annotations, and no output schema, the description covers both invocation modes and the scope difference between them, which is the key risk. A brief note on the returned data (collections, variables, values/modes) would close the remaining gap.

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 coverage is 0%, so the description must explain nodeId, and it does: nodeId flips the tool from a collection listing to a per-node binding lookup and broadens scope to remote variables. Only the expected ID format and whether nodeId accepts a single node only are left unstated.

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?

States a specific verb and resource ('List local variable collections and variables') and explicitly describes the second mode ('With nodeId... lists every variable bound under that node'). An agent knows exactly what it retrieves, though it does not name a sibling to distinguish itself from tools like figma_get_styles or figma_get_libraries.

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?

Usage is implied by the two modes: call without nodeId for the collection inventory, call with nodeId to reverse-look-up bindings. There is no explicit when-to-use/when-not guidance or pointer to alternatives such as figma_bind_variable_to_node for the write direction.

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