Skip to main content
Glama

create_svg

Imports SVG markup or a local .svg file into Figma as editable vector layers inside a frame, with optional scaling and flattening for icons.

Instructions

Import SVG as editable vector layers (wrapped in a frame). Give either svg (raw markup) or path (local .svg file read by the server). Set width and/or height to scale it (only one -> proportional; both -> scale then stretch). flatten: true merges all shapes into a single vector inside the frame — handy for icons. Returns the frame (with children when flattened).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoPosition relative to parent. If x, y and parentId are all omitted the node is centred in the viewport
yNo
svgNoRaw SVG markup, e.g. '<svg viewBox="0 0 24 24">...</svg>'
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
nameNo
pathNoLocal .svg file path (absolute, ~ or relative to the server cwd)
widthNo
heightNo
flattenNoFlatten all layers into one vector
parentIdNoParent frame/group/section id; default current page

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and discloses important behavior: content is wrapped in a frame, flattening merges shapes into one vector, the `path` file is read server-side, and the frame is returned with children when flattened. It does not cover permissions, failure modes, or effects on existing content, leaving some behavioral gaps.

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?

The description is front-loaded with purpose, then moves efficiently through input options, scaling, flattening, and return value in five tight sentences. There is no redundant filler, and each sentence adds useful information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter creation tool with no annotations or output schema, the description covers the core import flow, scaling behavior, flattening, server-side path reading, and return value. It leaves positioning/parenting and file/name defaults to the schema, so it is largely complete but not exhaustive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 60% across 10 parameters, and the description adds critical meaning for width/height scaling rules and flatten behavior, plus the `svg` versus `path` input choice. It does not explain x/y positioning, name, file, or parentId semantics, though the schema covers some of those independently.

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 opening sentence states a specific verb (Import), resource (SVG), and output (editable vector layers wrapped in a frame). It is clear enough to select without opening the schema, though it does not explicitly contrast itself with sibling creation tools such as create_image or create_shape.

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?

It provides concrete usage context: choose either raw `svg` markup or a `path`, use width/height to scale, and use `flatten` for icons. It stops short of explicit when-not-to-use guidance or naming alternative tools, so it is clear but not fully comparative.

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