Skip to main content
Glama

Robot Actions — Remote Device Control

Figma frame spec

figma_frame_spec
Read-onlyIdempotent

Read the design details of a Figma frame as compact JSON: for each visible node its id, name, type, bounds (x/y/w/h relative to the frame, in design units), text, font (family/size/weight/lineHeight), solid fills and strokes as #RRGGBB, corner radius, auto-layout mode/padding/spacing, and applied style names. Use it to check copy, colours, fonts and spacing against what the device actually shows (page source / element bounds). Pass the Figma link including node-id, or file_key + node_id. max_depth (default 6) and max_nodes (default 400) bound the output; "truncated": true means more existed. Uses the calling user's stored Figma token. TIP: design units are points/dp at 1x — scale by the device pixel ratio before comparing bounds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoFigma link to the frame, including node-id.
node_idNoNode id, "12:34" or "12-34". Needed with file_key.
file_keyNoFigma file key, when not passing url.
max_depthNoTree depth below the frame (default 6).
max_nodesNoMax nodes returned (default 400).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description still adds real behavior: it uses the calling user's stored Figma token (auth requirement), discloses truncation semantics ('truncated': true means more existed), and states that design units are points/dp at 1x and must be scaled by the device pixel ratio. None of that is available from the annotations.

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?

Front-loaded with what is returned, then usage, then input shapes, then output bounds, and finally the pixel-ratio TIP. The long field enumeration is dense but each item carries information an agent needs to interpret the payload, so nothing is filler.

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?

With no output schema, the description carries the full burden of describing return values and does so in detail, plus covers auth, truncation, and unit-scaling. Nothing an agent needs to call and correctly interpret this tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description goes further: it clarifies the two accepted input shapes (a Figma link including node-id, or file_key + node_id) and explains what max_depth/max_nodes actually control and what truncation implies. It adds genuine cross-parameter meaning beyond the schema text.

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?

States a specific verb and resource ('Read the design details of a Figma frame as compact JSON') and enumerates exactly what the payload contains (id, name, type, bounds, text, font, fills/strokes, corner radius, auto-layout, style names). This cleanly separates it from the sibling figma_frame_image, which returns a picture rather than structured design data.

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

Usage Guidelines4/5

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

Gives an explicit use case: verify copy, colours, fonts and spacing against what the device actually shows (page source / element bounds). That is a clear 'when to use' context, but it never names figma_frame_image as the alternative nor states when not to reach for this tool, so it falls short of the top band.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources