Skip to main content
Glama

figma_read_variable_values

Read-onlyIdempotent

Read resolved values of all local Figma variables to extract design token names, types, hex colors, and numeric values. Ideal for generating DESIGN.md, exporting to Tailwind, or detecting drift between design and code.

Instructions

Read the resolved values of all local variables in the current Figma file. Returns variable names, types, resolved hex values (for colors), and numeric values (for spacing/radius). Use this to extract DS token values for DESIGN.md generation, Tailwind export, or drift detection. Must be run in the library file (where variables are local) for full results. In consumer files, use discover_library_variables instead (returns keys/names but not values).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds context about behavior differences between library and consumer files, and specifies the scope (local variables only), which adds behavioral transparency beyond annotations.

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?

Three sentences, front-loaded with clear purpose, followed by usage guidance and alternatives. No wasted words, and the structure leads with the most important information.

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?

Given no output schema and zero parameters, the description fully covers context: what the tool does, what it returns, when to use it in a library vs consumer file, and contrasts with a sibling tool. It is complete for the tool's complexity.

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?

Input schema has 0 parameters and schema coverage is 100%, so the description cannot add parameter semantics. Baseline score of 4 is appropriate. The description does detail the output format and use cases, which is helpful but not directly about parameters.

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 tool reads resolved values of all local variables in the current Figma file, specifies return types (names, types, hex values, numeric values), and distinguishes it from the sibling tool figma_discover_library_variables which only returns keys/names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use: for extracting DS token values for DESIGN.md generation, Tailwind export, drift detection. Also clarifies that it must be run in the library file for full results, and in consumer files should use figma_discover_library_variables instead, providing clear alternatives.

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/miapre/mimic-ai'

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