Skip to main content
Glama
Figma Local MCP

Figma Local MCP

by ppgee

Get local Figma variables

get_variable_defs

Read local variable collections and values from the open Figma file to inspect design tokens and resolve variables without consuming the official Figma MCP quota.

Instructions

Read local variable collections and variable values from the open Figma file.

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_variable_defs"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileKeyNoOptional key of the Figma file to target. Omit to use the most recently active file; see get_plugin_status.
maxVariablesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral load. 'Read' plus 'local' usefully signals a non-destructive, local-only operation on the currently open file (implying a live plugin connection), but it says nothing about what happens if no file is open, whether results are truncated, or how partial collections are reported.

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?

One short sentence with the resource and scope front-loaded and no filler. Nothing could be removed without losing meaning.

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?

No output schema, no annotations, and an undocumented truncation parameter leave the agent without a picture of the return shape or result limits. For a read tool that may return large variable collections, the description should at least note the cap behavior and the requirement of an active plugin connection.

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

Parameters2/5

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

Schema description coverage is 50%: fileKey is documented in the schema, but maxVariables (default 200, max 2000) has no description anywhere, and the description adds nothing about either parameter. For a tool whose output can silently be capped, the missing explanation of maxVariables is a real gap.

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 ('Read') and specific resources ('local variable collections and variable values') scoped to 'the open Figma file'. That clearly distinguishes it from get_style_defs or get_document in substance, though it never names a sibling to reinforce the contrast.

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, when-not-to-use, or alternative routing in the description. The word 'local' hints that library/published variables are out of scope, but that is inference rather than guidance, and nothing tells the agent when to prefer get_style_defs or get_design_context.

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