Skip to main content
Glama
figma-mcp
by ivn4k

Local variables

get_variables
Read-only

Retrieve local Figma variable collections and modes with per-mode values for color, number, string, and boolean variables, including hex colors and alias details.

Instructions

Local variable collections (modes) and variables with values per mode. Colors are hex; aliases are {alias: id, name}.

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
nameNoCase-insensitive substring of variable name
typeNo
limitNo
collectionNoCollection name or id

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

readOnlyHint=true already tells the agent this is a safe read, lowering the bar. The description adds useful return-format context (hex colors, alias shape {alias: id, name}) but says nothing about pagination, limit behavior, or the structure of collections vs variables.

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?

Two compact sentences: purpose first, data-format detail second. No wasted words, though the telegraphic style leaves some structure implicit.

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

Completeness3/5

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

For a read-only retrieval tool with no output schema, it covers the resource and value formats but leaves the collection/mode structure, pagination, and limit semantics unspecified. Adequate but with clear gaps.

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?

With only 50% schema coverage, the description should compensate for undocumented parameters. It adds no meaning about name, type, limit, or collection; notably the limit parameter has constraints but no stated purpose. The alias/hex notes describe return values, not inputs.

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 names the resource precisely ('local variable collections (modes) and variables with values per mode'), which an agent can distinguish from sibling get_styles. However it is phrased as a noun phrase with an implicit verb rather than stating 'retrieves/returns', so it sits just below fully explicit.

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 when-to-use guidance, no prerequisites, and no mention of alternatives such as get_styles. The agent must infer from the resource name that this is the tool for variables.

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