Skip to main content
Glama
arinspunk

Claude Talk to Figma MCP

by arinspunk

create_text_style

Create a reusable text style in Figma from design specifications. Define font, size, spacing, and other typography properties to maintain design system consistency.

Instructions

Create a reusable text style (typography) in Figma's local styles. This is useful for design system consistency.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName for the style (e.g., 'Heading/H1' or 'Body/Large')
fontFamilyYesFont family name (e.g., 'Inter', 'Roboto')
fontStyleNoFont style (e.g., 'Regular', 'Bold', 'Italic'). Defaults to 'Regular'.
fontSizeYesFont size in pixels
letterSpacingNoLetter spacing value (defaults to 0)
letterSpacingUnitNoLetter spacing unit (PIXELS or PERCENT, defaults to PIXELS)
lineHeightNoLine height value
lineHeightUnitNoLine height unit (PIXELS, PERCENT, or AUTO, defaults to AUTO if no value provided)
textCaseNoText case transformation
textDecorationNoText decoration type
Behavior2/5

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

No annotations are provided, so the description must compensate. It only states the tool creates a style, but doesn't disclose behavior like whether it overwrites existing styles, requires permissions, or returns the style ID. For a create operation, expected mutation is implied, but more detail is needed.

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 with no wasted words. The first sentence immediately states the action and target, making it front-loaded and efficient.

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?

Given the tool has 10 parameters and no output schema, the description should explain what the created style yields (e.g., style ID for later use) and any constraints (e.g., file context). The current description is too minimal for effective use.

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?

The input schema has 100% coverage with clear parameter descriptions, so the description adds no additional semantic value. Baseline 3 is appropriate; the description could have clarified defaults or relationships between parameters (e.g., lineHeightUnit affecting how lineHeight is interpreted).

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 clearly states the tool creates a reusable text style in Figma's local styles, which is distinct from other style creation tools (e.g., create_effect_style). However, it doesn't explicitly differentiate from sibling tools like create_paint_style, but the context 'text style' makes it sufficiently clear.

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?

No guidance on when to use this tool vs. alternatives (e.g., using set_text_style_id or creating a text node with inline styles). The description only mentions 'useful for design system consistency,' which is a general benefit, not a usage guideline.

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/arinspunk/claude-talk-to-figma-mcp'

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