Skip to main content
Glama
Figma Local MCP

Figma Local MCP

by ppgee

Get local Figma styles

get_style_defs

Read paint, text, effect, and grid styles from the open Figma file to extract design tokens locally.

Instructions

Read local paint, text, effect and grid styles from the open Figma file (useful for design tokens).

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

B3.2/5.0
Behavior3/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 does add one genuinely useful behavioral qualifier: 'local' styles only, meaning library/remote styles are excluded. It omits other important traits, such as whether results are truncated at the maxStyles cap (default 200) and whether it requires a live plugin connection.

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?

A single tight sentence with the scope and use case front-loaded; nothing is wasted. It is arguably too compressed for a tool with an undocumented cap parameter, but as prose it is well-formed.

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 two-parameter read tool with no output schema, the description should say what comes back (style names/keys/values, grouping by style type) and whether results can be truncated. It hints at token-like output but leaves the return shape and the 200-default cap unaddressed, so an agent cannot predict what it will receive.

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 coverage is only 50%, and the one undocumented parameter is the meaning-critical one: maxStyles has no description in the schema, and the tool description never mentions a result cap or truncation behavior. Only fileKey is explained, and that explanation lives in the schema rather than the description, so the description adds nothing to compensate.

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 a specific resource set (local paint, text, effect, and grid styles) from the open Figma file. It does not, however, distinguish itself from the closely related get_variable_defs sibling, so an agent could not tell from the description alone which of the two yields design tokens.

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?

The parenthetical '(useful for design tokens)' implies a use case, and the schema's fileKey note points to get_plugin_status for the active-file case. But there is no explicit when-to-use/when-not guidance and no routing to get_variable_defs or get_design_context for related extractions.

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