Skip to main content
Glama
kicholiz

Figma Write Bridge MCP

by kicholiz

set_stroke_color

Set or clear a Figma node's stroke color, weight, alignment, dash pattern, caps, joins, opacity, or paint style by node ID to control borders and outlines.

Instructions

Set or clear a node's stroke. Color via hex/strokeHex or r/g/b (0..1 or 0..255), optional strokeWeight, strokeAlign (CENTER|INSIDE|OUTSIDE), dashPattern (e.g. [4,4]), strokeCap (NONE|ROUND|SQUARE), strokeJoin (MITER|BEVEL|ROUND), or styleId to apply a paint style. Pass clear:true to remove strokes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bNo
gNo
rNo
hexNo
clearNoRemove all strokes
nodeIdYes
opacityNo
styleIdNoApply a local paint style to strokes
strokeCapNoNONE | ROUND | SQUARE
strokeHexNo
strokeJoinNoMITER | BEVEL | ROUND
dashPatternNoe.g. [4, 4] for dashed; [] for solid
strokeAlignNoCENTER | INSIDE | OUTSIDE
strokeWeightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that clear:true removes strokes, that color accepts hex/strokeHex or r/g/b with two numeric ranges, and enumerates the enum-like string values. It does not state permissions, whether existing strokes are overwritten, or any return behavior, leaving meaningful gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core purpose in the first clause, then a compact enumeration of options. It is dense but every clause maps to a real parameter, so little is wasted; the long single sentence is slightly hard to parse but efficient overall.

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 14-parameter mutation tool with no annotations and no output schema, the description covers most parameters and the clear/apply-style modes, which is reasonably complete. However, it omits the opacity parameter and any note on side effects or required permissions, leaving gaps that structured fields do not fill.

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 coverage is low (43%), so the description must compensate, and it largely does: it explains hex/strokeHex, r/g/b with the 0..1 or 0..255 range, strokeWeight, strokeAlign, dashPattern (with example), strokeCap, strokeJoin, styleId, and clear. Only opacity goes unmentioned, so the description adds substantial meaning beyond the bare schema.

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 opens with a specific verb+resource: 'Set or clear a node's stroke.' This clearly distinguishes it from the fill-oriented siblings (set_fill_color, figma_set_solid_fill). It stops short of explicitly naming an alternative, so it is clear but not fully differentiated.

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 when-to-use or when-not-to-use guidance and no named alternatives. The mention of 'clear:true to remove strokes' and 'styleId to apply a paint style' hints at two modes, but the agent must infer when to pick this over apply_stroke_style or bind_color_variable_to_stroke.

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