Skip to main content
Glama
zaferdace

figma-spec-mcp

by zaferdace

inspect_layout

Inspect a Figma frame to extract layout hierarchy, positioning, spacing, constraints, and accessibility warnings as a versioned JSON envelope for stable downstream tooling.

Instructions

Inspects a Figma frame and returns deterministic layout data: node hierarchy, auto-layout vs absolute positioning, spacing, padding, constraints, and accessibility warnings (touch targets, font sizes). Output is a versioned JSON envelope — stable and predictable for downstream tooling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
node_idYesThe node ID of the frame to inspect
file_keyYesThe Figma file key (from the file URL)
frameworkNo
max_depthNo
access_tokenYesYour Figma personal access token
Behavior4/5

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

With no annotations, the description carries the burden of behavior disclosure. It adds context by stating the output is deterministic and a versioned JSON envelope, implying stability and predictability. It does not explicitly mention read-only behavior or side effects, but 'inspects' suggests non-mutating, and the return format description adds useful behavioral context beyond the schema.

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 two concise sentences, front-loaded with the main purpose and followed by a meaningful detail about output format. Every sentence adds value without redundancy, making it easy to read and understand.

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?

Despite no output schema, the description provides a solid overview of what the tool returns, listing key data categories and the versioned envelope. Given the tool's complexity (5 parameters, optional framework), the description is reasonably complete, though it could mention how parameters like max_depth or framework affect the output.

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 60%, with framework and max_depth lacking descriptions. The description does not elaborate on these parameters, nor does it clarify their purpose or allowed values. It focuses purely on output semantics, leaving the parameter behavior under-documented. This is a clear gap.

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

Purpose5/5

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

The description clearly states the tool inspects a Figma frame and returns deterministic layout data, listing specific contents (node hierarchy, auto-layout, spacing, padding, constraints). It distinguishes itself from sibling tools like audit_accessibility by focusing on layout data with accessibility warnings as a byproduct, making its purpose specific and 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?

Usage is implied: use this when you need detailed layout information from a Figma frame. However, there is no explicit guidance on when not to use it or what alternatives exist, such as audit_accessibility for dedicated accessibility audits. The description lacks explicit when-to-use vs. alternative guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zaferdace/figma-spec-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server