Skip to main content
Glama

figma_set_component_text

Idempotent

Set text on a Figma component instance using component properties or layer names. Provide node ID, property name, and new value.

Instructions

Set a text property on a component instance. Tries component properties first, then falls back to text layer name search. Use figma_get_node_props to discover available property names before calling this.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesNode ID of the component instance.
propertyNameYesComponent property name or text layer name to set.
valueYesNew text value.
Behavior5/5

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

Reveals fallback search order (component properties first, then text layer name) which is beyond annotations. Consistent with idempotentHint=true and no contradiction.

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, first states purpose, second adds behavior and usage tip. No wasted words, front-loaded.

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 3 string params, no output schema, and annotations, description fully covers behavior, fallback, and prerequisite discovery. Complete for a mutation tool.

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 already has 100% description coverage for all three parameters. The description adds context about propertyName being a component property or layer name, but does not significantly enhance beyond schema.

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?

Clearly states 'Set a text property on a component instance', specifying verb and resource. Distinguishes from siblings like figma_set_text and figma_get_node_props by focusing on component instances.

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: 'Use figma_get_node_props to discover available property names before calling this.' Also explains fallback behavior but does not explicitly state when not to use.

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