Skip to main content
Glama
open-figma-mcp

open-figma-mcp

by RHK1335

figma_set_strokes

figma_set_strokes

Set or append solid strokes on one or more Figma nodes with configurable color, opacity, and stroke weight.

Instructions

Set or append a solid stroke on one or more nodes.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "figma_set_strokes"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
colorNo
nodeIdNoFigma node ID. Colon or URL hyphen format accepted.
nodeIdsNoFigma node IDs. Colon or URL hyphen format accepted.
opacityNo
fillColorNo
screenKeyNo
strokeColorNo
strokeWeightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.8/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. It usefully discloses that only solid strokes are supported (no gradients or image strokes), but says nothing about what 'replace' destroys, whether existing fills are affected, required permissions, or error behavior for invalid node IDs.

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?

One sentence, front-loaded and free of filler, which is structurally clean. However, at this brevity it becomes under-specification rather than conciseness for a nine-parameter mutation tool.

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?

A nine-parameter mutation tool with no annotations, no output schema, and 22% schema coverage is documented by a single eight-word sentence. The description is not complete enough for an agent to pick between color/strokeColor/fillColor or to understand replace semantics.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 22%, so the description must compensate and does not. Nine parameters — mode, color, nodeId, nodeIds, opacity, fillColor, strokeColor, strokeWeight, screenKey — are never explained; notably three color parameters exist and the description offers no clue which one this tool actually reads.

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?

Names a specific verb pair (set/append) and resource (solid stroke on one or more nodes), which is enough to distinguish it from figma_set_fills or figma_set_effects by resource. It stops short of explicitly naming a sibling alternative, but the action and target are unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word 'append' and the phrase 'one or more nodes' imply the two operating modes and batch scope, so usage is partially inferable. There is no explicit when-to-use versus a fills tool, no prerequisite or selection guidance, and no statement about when append should be preferred over replace.

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