Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

List local styles

figma_get_styles
Read-onlyIdempotent

Lists a Figma file's local color, text, effect, and grid styles with values, so you can map them to CSS variables or theme tokens.

Instructions

Lists the file's local color, text, effect and grid styles with their values (colors as hex, typography as font/size/line-height). Use to map Figma styles to CSS variables or theme tokens.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "figma_get_styles"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFigma link, e.g. https://www.figma.com/design/<fileKey>/<name>?node-id=12-345 (right-click a layer > Copy link to selection). A bare file key also works.
formatNoyaml (default, ~30% fewer tokens) or jsonyaml
sourceNoWhere to read from. auto (default): Figma's viewer protocol (no token, no Dev Mode), then the REST API if FIGMA_TOKEN is set, then the plugin. web/rest/plugin force one.auto

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds genuine value beyond that: it scopes results to *local* styles (implying library/published styles are excluded) and, with no output schema present, discloses return formats (hex colors, font/size/line-height).

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?

Two sentences, zero waste: the what-and-what-returns comes first, the use case second. No restatement of the title or padding.

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 simple read tool with fully documented parameters, the description covers the resource, its scope (local), and the shape of returned values in the absence of an output schema. The only shortfall is the lack of guidance distinguishing this from variable/component retrieval tools.

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 description coverage is 100%, including detailed notes on the url format and the source fallback chain, so the schema carries parameter meaning fully. The description adds nothing about url, format or source, leaving this at the baseline for well-documented schemas.

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 and resource ("Lists the file's local color, text, effect and grid styles") and enumerates the four style categories, so the agent knows exactly what comes back. It does not, however, name or contrast with the nearby siblings figma_get_variables or figma_get_components, which cover adjacent token concepts.

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?

"Use to map Figma styles to CSS variables or theme tokens" gives an implied usage context rather than an explicit when-to-use rule. There is no statement of when NOT to use it, and no routing to figma_get_variables or figma_get_components, which an agent would plausibly confuse with style listing.

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