Skip to main content
Glama
figma-mcp
by svv2014

analyze_figma_components

Analyze Figma component instances and variants to inspect design structure and identify reusable patterns across a file or selected node IDs.

Instructions

Analyze component instances and variants

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": {
      "fileKey": "<fileKey>"
    },
    "name": "analyze_figma_components"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoArray of node IDs to analyze (optional, analyzes all if not provided)
fileKeyYesThe Figma file key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the entire behavioral burden and mostly drops it. It never says whether the call is read-only, whether it is expensive on large files, whether it requires a specific Figma plan or scope, or what the analysis produces. "Analyze" implies a computed read, but nothing confirms it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

A single short phrase with no padding, so there is nothing to trim, but the brevity comes at the cost of under-specification rather than efficiency. It is front-loaded but carries almost no information payload.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no annotations and no output schema, the description should explain what the analysis returns and how results are shaped (per-node? aggregate?). Neither is addressed, leaving an agent unable to judge whether the output is what it needs.

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% and both parameters (fileKey, ids) are documented in the schema, including the "analyzes all if not provided" default. The description adds nothing beyond that, so the baseline of 3 applies rather than a higher mark.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a verb ("Analyze") and a resource ("component instances and variants"), so the general subject is clear. However, "analyze" is undefined — it does not say what property is computed (usage counts, variant coverage, orphaned instances) — and nothing distinguishes this from read-oriented siblings such as get_figma_file_nodes or get_figma_layout_data. The purpose is stated but not sharpened.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisite note, and no alternative named. The only hint about scope (optional ids, everything otherwise) lives in the schema, not the description. An agent must guess when this is preferable to simply fetching nodes.

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