Skip to main content
Glama
figma-mcp-v2

figma-mcp-v2

by LukasAnda

List components

figma_get_components
Read-onlyIdempotent

Lists Figma components and component sets with variants, properties, descriptions, and usage counts to map design components to code; scope a page or entire file.

Instructions

Lists components and component sets (with variants, property definitions, descriptions and how often each is used), so you can map Figma components to code components. scope "page" covers the page of the linked node (fast); "file" loads every page.

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

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.
scopeNopage
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
node_idNoNode id to use instead of the one in the link, e.g. "12:345", "12-345", or an instance sublayer "I12:345;67:89".
include_libraryNoInclude components that come from shared libraries

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.7/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 open-world, so the safety profile is covered; the description adds what the payload contains and a performance characteristic (page-scoped reads are fast, file-scoped reads load everything). That is meaningful behavior beyond structured fields, though it says nothing about rate limits 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the purpose and return contents before the scope tradeoff. The parenthetical list is slightly crammed but every clause carries information; nothing is 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?

With no output schema, the description takes on the job of describing return values and does so (variants, property definitions, descriptions, usage counts). Given 6 parameters at 83% schema coverage, the only real gap is deeper scope/source interaction detail, which the schema partly covers.

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 83%, so the baseline is 3. The description does add real meaning for the scope parameter that its bare enum in the schema lacks, explaining that "page" is the linked node's page and "file" loads all pages, but the remaining parameters are left entirely to the schema.

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?

Names a specific verb and resource ("Lists components and component sets") and enumerates the returned detail (variants, property definitions, descriptions, usage counts), which makes the resource clearly distinct from styles or variables siblings. It stops short of naming an alternative tool for adjacent needs, so it lands just under the top mark.

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?

Usage context is implied by "so you can map Figma components to code components," and the scope sentence gives a real decision rule with a cost tradeoff (page = fast, file = every page). It never says when a different tool (e.g. styles or variables) is the better choice, so guidance is adequate but incomplete.

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