Skip to main content
Glama

get_design_specs

Returns exact measurements, colors, text and typography of a Figma frame's named layers before you write UI code, optionally scaled to a target device width in dp or pt.

Instructions

Returns the measurements of the Figma frame: position, size, colors, texts and typography of every named layer. Use it BEFORE writing a screen's UI code. If deviceWidth is passed, values are scaled to that width in dp or pt.

Input Schema

NameRequiredDescriptionDefault
refreshNotrue to download the Figma frame again instead of using the local cache. Use it only if the design changed: each download uses Figma API quota.
figmaUrlYesFigma frame URL (Copy link to selection), must include ?node-id=
deviceWidthNoLogical width of the target device in dp or pt (e.g. 412 for Pixel 7, 402 for iPhone 17). Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It usefully discloses the scaling behavior when deviceWidth is passed, but omits caching/refresh semantics and API-quota cost (only covered in the schema) and never explicitly states this is a read-only, side-effect-free operation.

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?

Three tight sentences, front-loaded with what is returned, then when to use it, then the one optional behavior. Nothing is wasted.

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?

No output schema exists, and the description compensates by enumerating the returned measurements, so an agent knows what to expect. Minor gap: refresh/cache behavior is only explained in the schema, not the description.

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 baseline is 3; the description adds value by explaining that passing deviceWidth scales returned values to that width in dp or pt, which is behavioral meaning the schema does not state.

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 ('Returns the measurements') and enumerates exactly what comes back: position, size, colors, texts, typography of every named layer. That is far more concrete than the sibling names (compare_screen, capture_screen) and lets an agent tell the tools apart.

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 explicit timing guidance: 'Use it BEFORE writing a screen's UI code.' Clear context for when to call it. It does not name an alternative tool or state when not to use it, so it falls short of a 5.

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