Skip to main content
Glama
kicholiz

Figma Write Bridge MCP

by kicholiz

set_text_style

Apply a saved text style or custom typography to a Figma TEXT node, including font, size, spacing, alignment, wrapping, and fills.

Instructions

Apply a text style and/or fine-grained typography to a TEXT node. Pass textStyleId to apply an existing style; also supports fontFamily/fontStyle, variationSettings (variable-font axes, e.g. {wght:550}), fontSize, lineHeight (number|'AUTO'|{unit,value}), letterSpacing (number|{unit,value}), textCase, textDecoration, textAlignHorizontal (LEFT|CENTER|RIGHT|JUSTIFIED), textAlignVertical (TOP|CENTER|BOTTOM), textAutoResize (WIDTH_AND_HEIGHT|HEIGHT|NONE|TRUNCATE), layoutSizingHorizontal/Vertical or width/height (FIXED|HUG|FILL), paragraphIndent/Spacing, fillsHex/fills/fillStyleId, boundVariables, textWrapStyle (AUTO|BALANCE|PRETTY), textTruncation (DISABLED|ENDING) and maxLines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fillsNo
widthNoAlias for layoutSizingHorizontal
heightNoAlias for layoutSizingVertical
nodeIdYes
fillsHexNo
fontSizeNo
maxLinesNo
textCaseNo
fontStyleNo
fontFamilyNo
lineHeightNo
fillStyleIdNo
textStyleIdNo
letterSpacingNo
textWrapStyleNo
boundVariablesNo
textAutoResizeNoWIDTH_AND_HEIGHT | HEIGHT | NONE | TRUNCATE
textDecorationNo
textTruncationNo
paragraphIndentNo
paragraphSpacingNo
textAlignVerticalNoTOP | CENTER | BOTTOM
variationSettingsNoVariable-font axis values keyed by OpenType tag, e.g. { wght: 550, slnt: -10 }.
textAlignHorizontalNoLEFT | CENTER | RIGHT | JUSTIFIED
layoutSizingVerticalNo
layoutSizingHorizontalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it does not say what existing styling gets overwritten, whether the node must already be a TEXT node, what permissions are needed, or what errors occur. It only adds minor behavioral context (that textStyleId applies a pre-existing style), leaving the mutation profile largely undisclosed.

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?

The purpose is front-loaded in the first clause, which is good, but the remainder is a single run-on sentence that strings all 26 parameters together without grouping or structure, making it hard to scan despite being information-dense.

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?

For a 26-parameter mutation tool with no output schema, the description does cover most parameter values, but it omits the when-to-use framing and the mutation/override behavior an agent needs. It is adequate on the parameter front but incomplete on operational context.

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?

Schema description coverage is only 23%, so the description must compensate and largely does: it enumerates allowed values for textAlignHorizontal, textAlignVertical, textAutoResize, textWrapStyle, textTruncation, layoutSizing, gives lineHeight/letterSpacing format options (number|'AUTO'|{unit,value}), and a variationSettings example. A few params (boundVariables, fills, fillStyleId) are named but not explained, so it falls short of a perfect 5.

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?

States a specific verb (apply) and resource (text style / fine-grained typography) scoped to a TEXT node, which is concrete and unambiguous. However, it does not differentiate itself from the sibling apply_text_style, even though both appear to apply existing styles, leaving the agent to infer which to pick.

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 explicit when-to-use or when-not-to-use guidance, no prerequisites, and no mention of the sibling alternatives (apply_text_style, figma_set_text, set_text_content). The only hint is 'Pass textStyleId to apply an existing style', which is parameter usage rather than tool-selection guidance.

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

Deploy Server

Other Tools