Skip to main content
Glama
figma-mcp
by svv2014

get_figma_layout_data

Retrieve layout and positioning data for Figma nodes to accurately build website prototypes from designs.

Instructions

Get layout and positioning data for nodes (for website prototyping)

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>",
      "ids": "<ids>"
    },
    "name": "get_figma_layout_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesArray of node IDs to get layout data for
fileKeyYesThe Figma file key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral disclosure burden. It implies a read operation but does not state what layout data is returned, whether it includes constraints or auto-layout info, or any permission requirements. This is a significant gap for a data-retrieval tool with no annotation coverage.

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?

The description is a single, front-loaded sentence with zero wasted words. The purpose and context are both presented immediately.

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?

The tool has low complexity (2 required parameters, no output schema), and the schema fully documents parameters. However, with no annotations and no output schema, the description should clarify what 'layout and positioning data' includes beyond the vague phrase, leaving an agent uncertain about the return values.

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 both parameters are fully documented in the schema. The description adds no additional meaning about the parameters beyond the schema, making the baseline 3 appropriate.

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 states a specific verb ('Get') and resource ('layout and positioning data for nodes'), making the core purpose clear. However, it does not differentiate this tool from siblings like get_figma_file_nodes or generate_figma_html/css, which may also return node positioning information.

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 parenthetical '(for website prototyping)' implies a usage context but gives no explicit when-to-use guidance, exclusions, or alternatives. An agent must infer that this tool is for layout extraction rather than general node retrieval.

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