Skip to main content
Glama

set_text

Idempotent

Add text elements to Figma with precise positioning, styling, and optional bounded text boxes. Supports single or batch creation for efficient design workflows.

Instructions

Creates one or more text elements in Figma. Accepts either a single text config (via 'text') or an array of configs (via 'texts'). If 'width' and 'height' are provided, creates a bounded text box; otherwise, creates a regular text node.

Returns:

  • content: Array of objects. Each object contains a type: "text" and a text field with the created text node ID(s).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoA single text element configuration. Optional.
textsNoAn array of text element configurations for batch creation. Optional.
Behavior4/5

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

Annotations provide rich behavioral info (e.g., idempotentHint: true, destructiveHint: false, edgeCaseWarnings). The description adds value by explaining the return format ('Returns: - content: Array of objects...') and clarifying the effect of width/height on text box type, which isn't covered in annotations. No contradiction with annotations.

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 efficiently structured: first sentence states purpose, second explains parameter options, third clarifies bounded vs. regular text, and fourth details return format. Every sentence adds essential information with zero waste.

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

Completeness5/5

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

Given the rich annotations (including usageExamples and edgeCaseWarnings) and 100% schema coverage, the description provides complete context. It explains creation behavior, parameter usage, and return format. No output schema exists, but the description adequately covers return values.

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 schema fully documents parameters. The description adds marginal value by explaining the text/texts parameter relationship and the width/height effect on text box type, but doesn't provide additional semantic context beyond what's in the schema descriptions. Baseline 3 is appropriate.

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 the specific action ('Creates one or more text elements in Figma') and distinguishes it from siblings like 'set_text_content' (which modifies existing text) or 'create_rectangle' (which creates a different element type). It specifies the resource (text elements) and the context (Figma).

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 on when to use this tool: for creating text elements, with options for single or batch creation and bounded vs. regular text nodes. It doesn't explicitly mention when not to use it or name alternatives like 'set_text_content' for modifying existing text, but the context is sufficiently clear for an agent to infer usage.

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

Related 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/amalinakurniasari/conduit'

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