Skip to main content
Glama

Kalpana Designer

Import an SVG

import_svg

Add an SVG (icon, logo, illustration) as editable vector layers inside one new group, from its markup in svg: paths, rectangles, circles, lines and polygons with their fills, strokes, linear and radial gradients and transforms. Each becomes an unclipped frame; groups and shapes are named from id, data-name, inkscape:label or aria-label, so update_layers select and animate can find them. Text, images, masks, clips, filters and are skipped and listed in skipped: add text with create_layers and photos as image layers. Returns the group and every layer made. Saved as a new revision that undo reverts; if any part is refused, nothing changes. Use it for artwork drawn elsewhere; for exact geometric shapes use shape_path.

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": {
      "page_id": "<page_id>",
      "intent": "<intent>"
    },
    "name": "import_svg"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoLeft edge in px relative to the parent (centred when omitted).
yNoTop edge in px relative to the parent (centred when omitted).
svgNoThe SVG markup.
nameNoName of the group the shapes go into ("SVG" by default).
widthNoWidth in px to scale to, keeping the aspect ratio. Default: the SVG's own width, shrunk to fit inside the parent when larger.
intentYesOne short sentence: what you change and why. Kept in the design history.
page_idYesThe page to work on, as returned by create_design.
parent_idNoFrame or group to add into; the scene when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing atomicity (if any part is refused, nothing changes), revision semantics (new revision, undo reverts), naming derivation from id/data-name/inkscape:label/aria-label, and that skipped content is reported in a `skipped` list. With annotations already declaring this is a non-destructive, non-openWorld write, the description still adds meaningful operational context; only the exact return payload shape is left implicit.

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?

Front-loads what gets created, then supported markup, then skip behavior, then side effects — a logical order with no filler. It is dense and somewhat run-on as a single paragraph, which slightly hurts scannability for a long description.

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

Completeness5/5

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

For an 8-parameter mutation with no output schema, it covers input format, placement/scaling defaults (via schema), failure atomicity, undo, return contents, and sibling routing. Nothing an agent needs in order to call this correctly is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds real meaning about the `svg` parameter's accepted grammar and about how `name` is resolved (per-element naming from ids and labels). It does not add syntax detail for x/y/width/scale, which the schema already covers.

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

Purpose5/5

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

States a specific verb and resource: adds an SVG as editable vector layers inside one new group, and enumerates the supported primitives (paths, rects, circles, lines, polygons with fills, strokes, gradients, transforms). It explicitly distinguishes itself from shape_path and create_layers, so an agent can route between import-path and primitive-path tools without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit routing: use this for artwork drawn elsewhere, use shape_path for exact geometric shapes, create_layers for text, and image layers for photos. It also names what input is rejected (text, images, masks, clips, filters, <use>), which is effectively a when-not-to-use clause.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources