Skip to main content
Glama

Implement Design

implement_design
Read-onlyIdempotent

Convert Figma frames into production code for React, Tailwind, React Native, or HTML/CSS, mapping visual values and components to design system tokens and flagging mismatches.

Instructions

Convert a Figma frame into production code using design system tokens and components.

Every visual value (color, spacing, typography, shadow) is matched against the project's design system tokens. Matched values use token references (e.g., var(--primary)); unmatched values use raw Figma values and are flagged in the mapping report.

Args:

  • figma_file_key (string): Figma file key containing the frame to implement

  • node_id (string): Node ID of the frame/section to implement

  • framework ('react-tailwind' | 'react-css' | 'react-native' | 'html-css'): Target framework

  • component_name (string, optional): Name for the generated component (inferred from frame name if omitted)

  • design_system_file_key (string, optional): Figma file key for the design system (tokens, variables, components). Use when the design system is in a different file than the frame being implemented.

Returns: Three content blocks: generated code, token/component mapping report, and a Figma screenshot.

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": {
      "figma_file_key": "<figma_file_key>",
      "node_id": "<node_id>",
      "framework": "<framework>"
    },
    "name": "implement_design"
  }
}

Input Schema

NameRequiredDescriptionDefault
node_idYesNode ID of the frame/section to implement
frameworkYesTarget framework for code generation
component_nameNoName for the generated component (default: inferred from Figma frame name)
figma_file_keyYesFigma file key containing the frame to implement
design_system_file_keyNoFigma file key for the design system (tokens, components). If omitted, uses figma_file_key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description's job is to add behavior, which it does: matched values become token references, unmatched values stay raw and are flagged in a mapping report. It omits failure modes (invalid node_id, unsupported Figma file, token-miss volume) but discloses the core transformation contract.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence is front-loaded and carries the real payload, followed by a compact behavior note. The Args block duplicates the schema almost word for word, and the Returns block is justified only because no output schema exists, leaving modest redundancy.

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?

With no output schema, the description usefully enumerates the three returned content blocks, and it explains the token-resolution fallback behavior, which is the main thing an agent must anticipate. Remaining gaps are edge-case handling and any cost or rate considerations for large frames.

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 coverage is 100%, so the schema already documents all five parameters and the framework enum. The description largely restates those definitions verbatim; its only genuine addition is guidance on when to supply design_system_file_key, which exceeds the schema's 'If omitted, uses figma_file_key' note.

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?

States a specific verb and resource chain: convert a Figma frame into production code using design system tokens and components. The token-matching mechanism further pins down what the tool does. It does not, however, distinguish itself from the similarly named sibling generate_coded_components, so an agent must infer the boundary.

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 by the description of token matching and by the note that design_system_file_key applies when the design system lives in another file. There is no explicit when-to-use/when-not statement and no named alternative among the many design/code-generation siblings, leaving the agent to infer routing.

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