Skip to main content
Glama
Figma Design Pipeline

Figma Design Pipeline

by spfr

figma_generate_page

Generates an Astro page template from an organized Figma design, converting design nodes into case-study, blog-post, landing, or generic page structures.

Instructions

Generate an Astro page template from organized Figma design

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "figma_generate_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdNoRoot node ID to generate page from
figmaUrlNoFigma design URL (e.g., 'https://www.figma.com/design/ABC123/File-Name?node-id=1817:2817'). Extracts file key and node ID automatically. Once set, persists for the session.
registryNoComponent registry to usedefault
templateTypeNoTemplate type to generategeneric

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden for what is effectively a code-generation/write operation. It does not say where the generated template is written, whether it overwrites existing files, whether it depends on a component registry being populated first, or what the call returns on success/failure.

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?

A single front-loaded sentence with no filler. It is efficient, though the brevity comes at the cost of the behavioral detail noted elsewhere.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and four parameters that are all optional (zero required), the description is too thin for a generative write tool. It omits prerequisites, output destination, and interaction with the surrounding registry/planning tools that its own parameter set implies.

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 nodeId, figmaUrl, registry, and templateType are already documented with defaults and an enum. The description adds no meaning beyond that baseline, which is acceptable when the schema does the heavy lifting.

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 artifact: 'Generate an Astro page template' from a Figma design. An agent can tell this produces a page template rather than tokens, images, or a schema. It does not, however, contrast itself with figma_generate_schema or explain what 'organized' Figma design means.

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?

The phrase 'from organized Figma design' implies a prerequisite state (components already organized/mapped via the sibling planning tools), but it never states when to call this versus figma_generate_schema or figma_execute, nor what must be done first.

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