Skip to main content
Glama
Figma Design Pipeline

Figma Design Pipeline

by spfr

figma_get_tree

Fetch an enriched Figma node tree with classifications, tokens, and layout info using a Figma URL or node ID to inspect design structure and styles.

Instructions

Fetch enriched Figma node tree with classifications, tokens, and layout info. Pass a Figma URL or nodeId.

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": "figma_get_tree"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoMax depth to traverse
nodeIdNoFigma node ID (e.g., '1817:2817'). Auto-extracted from figmaUrl if provided.
figmaUrlNoFigma design URL (e.g., 'https://www.figma.com/design/ABC123/File-Name?node-id=1817:2817'). Extracts file key and node ID automatically. Once set, persists for the session.
includeStylesNoInclude style/token information

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

B3.2/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 full burden of behavioral disclosure. "Fetch" weakly implies a read operation and the phrase "enriched ... with classifications, tokens, and layout info" hints at return content, but there is no statement about read-only safety, traversal cost at depth 20, response size, or any failure modes for invalid URLs or node IDs.

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 capability and followed by the minimal invocation hint. The second sentence largely duplicates schema content, but it is short enough that the redundancy costs little.

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?

With no output schema and no annotations, the description is the only source of behavioral and return-shape context, and it only gestures at the payload ("classifications, tokens, and layout info"). It is adequate to know what the tool does, but thin for a 4-parameter traversal tool that an agent must reason about before calling.

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%, so all four parameters (depth, nodeId, figmaUrl, includeStyles) are already fully documented in the schema. The description only restates the URL/nodeId option and adds no meaning about depth semantics, includeStyles effects, or the session-persistence behavior of figmaUrl.

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?

"Fetch enriched Figma node tree" gives a specific verb and resource, and the qualifier "with classifications, tokens, and layout info" tells the agent what makes this tree different from a raw node dump. It does not name a sibling such as figma_find_nodes or figma_get_components, so the agent must infer the boundary, but the purpose itself is unambiguous.

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 invocation guidance ("Pass a Figma URL or nodeId") but no when-to-use or when-not-to-use guidance relative to the many sibling retrieval tools. Usage is only implied: fetch this when you need the structural tree rather than components, styles, or found nodes.

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