Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

get_variables

Retrieve a Figma document's local variables by collection, including each variable's value in every mode, colors as hex, and aliases by referenced name.

Instructions

Get the current document's local variables by collection, with each variable's value in every mode (colors as hex, aliases by the name they point to)

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": "get_variables"
  }
}

Input Schema

NameRequiredDescriptionDefault
collectionNoOnly the collections whose name contains this text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.9/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden. It does disclose important output behavior: variables are grouped by collection, values are returned for every mode, colors are hex, and aliases are resolved to target names. It does not explicitly state read-only safety or error behavior, but the 'Get' verb and output details provide solid transparency.

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 dense sentence that front-loads the action and resource, then adds useful output details without any redundant wording.

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

Completeness5/5

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

For a simple read-only getter with one optional parameter and no output schema, the description provides enough detail about grouping and value formatting to call and interpret the result correctly. Nothing essential is missing for this tool's complexity.

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%, and the single parameter already explains that it filters by collection name substring. The description says 'by collection' but adds no extra syntax, matching, or edge-case semantics beyond the schema. Baseline 3 is appropriate.

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: 'Get the current document's local variables by collection'. It adds useful scope detail about values in every mode, hex colors, and alias names, making the operation clear. It does not explicitly distinguish itself from siblings, so it falls short of the top score.

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 name and the phrase 'current document's local variables', but there is no explicit guidance on when to use this tool instead of alternatives such as get_styles or bind_color_variable. The collection filter hints at a use case but does not constitute when-to-use guidance.

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