Skip to main content
Glama
Talk to Figma MCP

Talk to Figma MCP

by thanatusdev

create_line

Creates a line in Figma using start and end coordinates, with optional stroke color, weight, name, and parent node placement.

Instructions

Create a new line in Figma

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": {
      "startX": "<startX>",
      "startY": "<startY>",
      "endX": "<endX>",
      "endY": "<endY>"
    },
    "name": "create_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
endXYesEnding X position
endYYesEnding Y position
nameNoOptional name for the line
startXYesStarting X position
startYYesStarting Y position
parentIdNoOptional parent node ID
strokeColorNoStroke color in RGBA format
strokeWeightNoStroke weight

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden for a mutation tool, and it says nothing about permissions, whether the new line is appended to the current page or a parent, whether it becomes the selection, or what is returned. 'Create' at least signals a write operation and that a persistent node is added, but no details beyond that are given.

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, front-loaded sentence with zero wasted words. Its brevity is appropriate in form, though the shortfall is under-specification rather than verbosity.

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 an eight-parameter mutation tool with a nested object and no annotations or output schema, the description omits critical framing such as the coordinate space, default parent, and whether optional fields like name and strokeWeight have defaults. The schema covers parameters well, but the behavioral context an agent needs to invoke this correctly is missing.

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%, so all eight parameters, including the nested RGBA strokeColor object, are already documented in the schema. The description adds no meaning about coordinate origin (page-absolute vs. parent-relative) or how parentId interacts with startX/startY, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Create') and resource ('line') in Figma, so the basic intent is recoverable. However, the sentence essentially restates the tool name, and it does not contrast itself with siblings like create_rectangle, create_ellipse, or create_frame, leaving the agent to infer that a line is a distinct geometry type rather than a generic node.

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 guidance on when to use this versus other creation tools, no prerequisites (e.g., whether a Figma document must be open or a node selected), and no note on which parent a line lands under by default. The agent must infer everything from the name alone.

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