Skip to main content
Glama
OpenFigma MCP

OpenFigma MCP

create_svg

Create vector layers in Figma from SVG markup—lines, arrows, paths, and icons—positioned at a given X/Y, like Figma's native SVG import.

Instructions

Create vector layers from SVG markup, like Figma's SVG import: lines, arrows, paths, icons

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": {
      "svg": "<svg>",
      "x": "<x>",
      "y": "<y>"
    },
    "name": "create_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX position
yYesY position
svgYesA complete <svg> document
nameNoLayer name
parentIdNoParent node ID (default: current page)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

C2.9/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 burden of behavioral disclosure. It implies a create/mutation operation but does not explain permissions, whether one or multiple layers are created, how x/y position the result, what happens with malformed SVG, or whether the creation is reversible.

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?

The definition is a single front-loaded sentence with no wasted words. The Figma analogy and vector examples earn their place by quickly setting expectations.

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 mutation-style creation tool with no annotations and no output schema, the description is too thin. It leaves out what gets returned, how the SVG is placed relative to x/y and parentId, and any failure or permission behavior an agent would need before invoking 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%, and every parameter including svg, x, y, name, and parentId already has a clear description. The tool description adds only the high-level notion of SVG markup and does not add formatting, coordinate-system, or parent-resolution details beyond the schema; a baseline 3 is appropriate.

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?

The description states a specific verb and resource—'Create vector layers from SVG markup'—and the examples (lines, arrows, paths, icons) plus the Figma import analogy distinguish it from shape-specific siblings like create_rectangle or create_ellipse. It does not explicitly name a sibling, but the input format alone makes the purpose identifiable.

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 explicit guidance on when to use this tool versus create_rectangle, create_ellipse, or other layer-creation tools. The usage is only implied by mentioning SVG markup, and no exclusions or alternatives are provided.

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