Skip to main content
Glama
sso-ss

figma-unified-mcp

by sso-ss

figma_codegen_bundle

Generate code from Figma designs by fetching a complete bundle with design tree, image and SVG URLs, screenshot, and metadata in one call.

Instructions

Get a complete design-to-code bundle in a single call (REST-only, no plugin needed). Returns:

  • Compact tree with colors, fonts, layout, image refs, gradients, shadows

  • Image fill URLs (CDN links for raster images)

  • Vector/icon SVG URLs (rendered via Figma API)

  • Screenshot of the node (base64 PNG)

  • Metadata (node name, dimensions, image counts)

The LLM should use this data to generate code directly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesNode ID to generate code for (e.g. '74:13142')
fileKeyYesFigma file key
maxDepthNoMax tree depth (default: 15)
screenshotScaleNoScreenshot scale 1-4 (default: 2)
includeScreenshotNoInclude screenshot (default: true)
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well by disclosing REST-only behavior, no plugin requirement, and a detailed list of return values. It implies a safe read operation but does not explicitly state side effects, rate limits, or error behavior, so it is not a 5.

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 well-structured with a front-loaded purpose statement followed by a concise bullet list of return items. Every sentence adds value, and the 'LLM should use this data' note directly guides the agent. No wasted words.

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?

Given that there is no output schema, the description does a good job explaining return values (image URLs, screenshot, metadata). However, the 'compact tree' format is left vague—properties, nesting, and exact schema of the tree are not specified—so the LLM might need additional context to interpret it fully.

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 the baseline is 3. The tool description does not add parameter-specific meaning beyond what the schema already provides (e.g., maxDepth, screenshotScale are explained in the schema). Thus, it meets the baseline but does not enhance parameter understanding.

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 uses a specific verb ('Get') and a clear resource ('complete design-to-code bundle'), and it distinguishes this tool from siblings by emphasizing 'single call' and 'REST-only, no plugin needed'. It also enumerates the main returned components, making the tool's purpose unmistakable.

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?

The description provides clear context for when to use the tool: when a full design-to-code bundle is needed in one call, and explicitly instructs the LLM to use this data to generate code directly. It does not, however, mention specific alternative tools or when not to use it, which would make it a 5.

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/sso-ss/figma-unified-mcp'

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