Skip to main content
Glama
Gawasna

figma-antigravity-mcp

by Gawasna

get_variable_defs

Extract design tokens from a Figma node to get variable names and resolved values for colors, spacing, and typography before writing code.

Instructions

Do what: Returns all design variables (tokens) referenced by a node — colors, spacing, typography values with their names and resolved values. Expected output: Map of variable names to resolved values e.g. { "p1-orange": "#ED9E4A" }. Use to extract the design system token palette before writing code or creating new nodes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesTarget node ID e.g. "4:85".
fileKeyYesFigma file key. Only /design/ URLs are supported.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it delivers a stated output contract: a map of variable names to resolved values with an example. It also clarifies the scope ('referenced by a node'), though it does not mention auth prerequisites, empty results, or failure modes.

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 short labeled sentences each carry distinct information: behavior, output format, and use case. No filler or redundant restatement, and the key action is front-loaded.

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?

For a two-parameter read operation with no output schema, the description gives enough to invoke it correctly: what it takes, what it returns, and when to use it. It lacks only edge-case or auth details, which are non-critical for this simple call.

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 coverage is 100%: both required parameters, fileKey and nodeId, already have descriptions with patterns and examples. The tool description adds no parameter-specific semantics, so the baseline 3 applies.

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 opens with a precise verb-resource pair: 'Returns all design variables (tokens) referenced by a node', listing concrete categories (colors, spacing, typography) and the output shape. This makes it clearly distinguishable from sibling tools like get_metadata and get_screenshot, which target different resources.

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

Usage Guidelines4/5

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

The last sentence gives an explicit intended use case: 'Use to extract the design system token palette before writing code or creating new nodes.' This is clear context, though it does not state alternatives or exclusion conditions relative to tools like get_design_context.

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