Skip to main content
Glama
Figma Vector MCP

Figma Vector MCP

by workingmodel

create_polyline

Creates an editable vector polyline from [x, y] coordinate pairs, with an option to close the path into a filled polygon.

Instructions

Create an editable vector from an array of [x, y] point pairs. Use closed=true to produce a filled polygon.

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": {
      "points": "<points>"
    },
    "name": "create_polyline"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
nameNoLayer name
closedNoClose the path into a polygon
pointsYesArray of [x, y] coordinate pairs
parentIdNoParent frame/group node ID
strokeColorNo
strokeWeightNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.3

TDQS

B3/5.0
Behavior2/5

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

No annotations exist, so the description carries the full behavioral burden and largely drops it: it does not say where the node is placed when parentId is omitted, whether the call is undoable, or what identifies the created object. The one real disclosure — closed=true yields a filled polygon — is useful but narrow for an 8-parameter creation tool.

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

Conciseness5/5

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

Two short sentences with zero filler, the core action front-loaded and the option hint second. Nothing is redundant with the tool name.

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 tool with 8 parameters, a nested color object, no annotations and no output schema, the description omits the essentials: where the vector is inserted, what the call returns, and how the stroke settings interact with the defaults. The gaps it leaves are the ones an agent must know to call it correctly.

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 50%, and the description only echoes the two best-documented parameters (points, closed), adding just the 'filled' nuance. Undocumented parameters — x/y at the top level, parentId default behavior, name, strokeColor, strokeWeight — get no compensating explanation, so an agent cannot tell whether top-level x/y are used at all when points is provided.

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: 'Create an editable vector from an array of [x, y] point pairs.' That is concrete enough to separate it from create_rectangle or create_text, but it never contrasts with the closest siblings (create_path, create_vector_from_svg), so an agent still has to guess which vector-creating tool 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 Guidelines3/5

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

The only usage cue is 'Use closed=true to produce a filled polygon,' which explains a mode rather than when to choose this tool over create_path or create_vector_from_svg. No preconditions (target page, parent requirement) are stated, so usage is only implied.

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