Skip to main content
Glama

figma_create_text

Generate Figma text nodes that adhere to your design system by specifying DS text style IDs and color variable paths, with fallback to raw font and color properties.

Instructions

Create a text node. For DS compliance, always pass textStyleId (a DS text style ID from figma_list_text_styles) AND fillVariable (a DS color variable path). Raw fontSize/fontWeight/lineHeight are accepted as fallbacks but DS styles are preferred.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesText content.
parentNodeIdNo
textStyleIdNoDS text style ID (e.g. "S:abc123,7649:603"). Use figma_list_text_styles to discover IDs.
fillVariableNoColor token path, e.g. "Colors/Text/text-primary".
fillHexNoFallback hex color.
fontSizeNoFallback — prefer textStyleId.
fontWeightNoFallback — prefer textStyleId.
lineHeightNoLine height in px. Fallback — prefer textStyleId.
textAlignHorizontalNo
widthNoFixed width — text wraps at this width.
layoutGrowNo
layoutAlignNo
xNo
yNo
Behavior3/5

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

Annotations already indicate a write operation (readOnlyHint=false) and non-destructive nature. The description adds DS compliance preferences but no additional behavioral traits like side effects or return behavior. Adequate but not exceptional.

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?

Two sentences, front-loaded with purpose and key guidance. Every sentence earns its place; no fluff.

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

Completeness3/5

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

Covers creation and DS compliance well, but lacks information on return value, error handling, or positioning details. Given 14 parameters and no output schema, more completeness would be beneficial.

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?

Adds meaningful context beyond schema: explains textStyleId format and fillVariable as color path, and which parameters are fallbacks. With 57% schema coverage, description compensates for many undocumented parameters. However, several parameters (e.g., x, y, layoutGrow) lack explanation.

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 clearly states 'Create a text node' with specific verb and resource. It distinguishes from siblings like figma_set_text by focusing on creation rather than modification.

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?

Provides explicit guidance on when to use DS parameters ('For DS compliance, always pass textStyleId AND fillVariable') and notes fallbacks. Does not explicitly list when not to use or alternative tools, but context with siblings implies usage boundaries.

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/miapre/mimic-ai'

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