Skip to main content
Glama
Figma Vector MCP

Figma Vector MCP

by workingmodel

set_stroke

Configure stroke color, weight, alignment, dash pattern, line cap, and line join on a Figma vector node to control borders and outlines precisely.

Instructions

Set comprehensive stroke properties on a node: color, weight, position, dash pattern, line cap, and line join.

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>"
    },
    "name": "set_stroke"
  }
}

Input Schema

NameRequiredDescriptionDefault
colorNoStroke color
nodeIdYesFigma node ID
weightNoStroke width in pixels
lineCapNo
lineJoinNo
positionNoStroke alignment
dashPatternNoDash pattern e.g. [8, 4] for dashed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

B3.1/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. It never says whether the call is a full overwrite (resetting unspecified properties like dashPattern), whether it creates a stroke if the node has none, whether it works on all node types, or what it returns — all material 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?

A single sentence that front-loads the action and then enumerates the properties, with no filler. The list is long but each item maps to a real parameter, so nothing is wasted.

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?

For a 7-parameter mutation tool with no annotations and no output schema, the description should clarify overwrite semantics, node-type applicability, and required permissions. None of that is present, leaving significant gaps relative to the tool's complexity.

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?

At 71% schema description coverage, the schema already documents color sub-channels, weight, position, and dashPattern, and enums handle lineCap/lineJoin. The description only re-lists those field names without adding units, defaults, interaction rules, or validation hints beyond the 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?

Specific verb+resource ('Set ... stroke properties on a node') with an explicit enumeration of the seven settable aspects. The word 'comprehensive' implicitly contrasts it with the sibling set_stroke_color, but no sibling is named, so the differentiation rests on inference.

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?

There is no explicit when-to-use or when-not-to-use guidance and no mention of set_stroke_color as the narrower alternative. The adjective 'comprehensive' hints that this tool is the multi-property option, which is implied usage only.

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