Skip to main content
Glama
Figma Design Pipeline

Figma Design Pipeline

by spfr

figma_generate_schema

Generate a CMS ContentSchema definition from a Figma design structure, turning design nodes into reusable content fields.

Instructions

Generate a CMS ContentSchema definition from Figma design structure

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": {
      "schemaId": "<schemaId>"
    },
    "name": "figma_generate_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdNoRoot node ID to generate schema 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.
schemaIdYesSchema ID (e.g., 'case-studies')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

C2.8/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 of behavioral disclosure. It says nothing about whether the generated definition is persisted to a CMS, written to disk, or merely returned; nothing about whether an existing schema with that ID is overwritten; nothing about authentication or Figma access requirements. For a mutation-adjacent generation tool this is a substantial gap.

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

Conciseness3/5

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

A single front-loaded sentence with zero filler, but it is a bare fragment and leaves the operation under-specified. Brevity here reflects thin content rather than disciplined editing; one more sentence on output and persistence would have earned its place.

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 three parameters, no annotations, and no output schema, the agent must infer the result shape of the generated ContentSchema, whether the call has side effects, and how the required schemaId relates to the source node. The description does not close any of those gaps, leaving it inadequate for the tool's complexity.

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%, and the schema already explains nodeId, figmaUrl (including URL parsing and session persistence), and schemaId with examples. The description adds no meaning beyond the structured fields, so the baseline of 3 applies rather than credit or penalty.

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?

The description names a specific verb ('Generate'), a specific output artifact ('CMS ContentSchema definition'), and the source ('Figma design structure'), so an agent can tell it produces a schema rather than a page, layout, or token set. It does not explicitly contrast with siblings such as figma_generate_page or figma_plan_components, so differentiation rests on the noun phrase alone.

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

Usage Guidelines2/5

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

There is no guidance on when to reach for this tool versus figma_generate_page, figma_plan_components, or figma_extract_tokens, and no stated prerequisites (e.g., whether a Figma URL or node ID must already be resolved, or whether the schemaId must correspond to an existing CMS schema). Usage is only inferable from the verb and resource.

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