Skip to main content
Glama
figma-mcp
by ivn4k

Local components

get_components
Read-only

Retrieve components and component sets, including variants and property definitions, from a Figma file; use returned IDs to create instance nodes.

Instructions

Components and component sets (with variants and property definitions) defined in this file. Use their id with create_nodes type INSTANCE.

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

Input Schema

NameRequiredDescriptionDefault
nameNoCase-insensitive substring of the name
limitNo
allPagesNoSearch all pages (slower) instead of the current page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description adds file-scoping ('local' components only) and the intended consumption pattern for the returned ids, which is real added context, but it says nothing about result ordering, completeness, or how the allPages tradeoff affects the call.

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 short sentences with zero waste: the resource definition comes first, then the actionable follow-up. Nothing is repeated from the schema or annotations.

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

Completeness5/5

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

For a simple read-only listing tool with annotations covering safety and no output schema obligations, the description supplies what the agent needs: what is returned (components, sets, variants, property definitions), the scope (this file), and how to use the ids. The only gap is the undocumented limit parameter, which is minor.

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 description coverage is 67%: name and allPages are documented in the schema, but limit has only type/default/bounds and no explanation. The description contributes no parameter meaning at all, so the one undocumented parameter stays unexplained in both places.

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?

The description names a specific resource — components and component sets, including variants and property definitions — and scopes it to 'this file,' which separates it from library or style lookups. It falls short of a 5 only because it doesn't explicitly contrast with get_nodes or get_styles, leaving the boundary implicit.

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 second sentence gives a concrete downstream use ('Use their id with create_nodes type INSTANCE'), which is genuinely useful routing information. However, there is no guidance on when to call this versus get_nodes or find_nodes, and no note about paging through results.

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