Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figma_set_strokes

Set or update a node's stroke border using hex color values and an optional stroke weight. Use it to apply precise borders to Figma nodes by ID.

Instructions

Set the stroke (border) on a node. Accepts hex color strings and optional stroke weight.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
nodeIdYesThe node ID to modify
strokesYesArray of stroke objects
strokeWeightNoStroke thickness in pixels

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: it does not state that calling it overwrites existing strokes, whether the node must support strokes (vector/frame vs text), whether edit permission is required, or what the call returns. The only additional detail, hex color and optional weight, largely restates the schema.

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?

Two short sentences with the action front-loaded and no filler. It is efficient, though the tightness comes partly from omitting necessary behavioral detail rather than from disciplined editing.

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 simple three-parameter mutation tool whose parameters are fully documented in the schema, the description covers the core action. However, with zero annotation coverage and no output schema, it should have disclosed replacement semantics and node-type applicability, which are the main risks for an agent calling it.

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 description coverage is 100%, with nodeId, strokes items (type/color/opacity) and strokeWeight all documented in the schema, so the baseline is 3. The description reinforces the color format (hex) and that strokeWeight is optional but adds no meaning beyond the schema, such as whether weight is per-stroke or array-wide.

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 and resource ("Set the stroke (border) on a node") and parenthetically clarifies that stroke means border, which separates it from sibling style-setters like figma_set_fills. It does not name or contrast any sibling explicitly, so it stops short of full differentiation.

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?

No explicit when-to-use guidance, no mention of alternatives such as figma_set_fills, and no prerequisites stated. It also does not say whether existing strokes are replaced or merged, which is the key decision an agent needs before invoking it.

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