Skip to main content
Glama

Kalpana Designer

Compute a shape outline

shape_path
Read-onlyIdempotent

Compute exact SVG path data for a vector layer: a shape (arc, sector, ring, rounded polygon, star, spiral, wave, gear, arrow, blob, comic burst with jitter, seed and aspect, a smooth line through points, the graph of a function), a stroke's filled outline, a boolean of paths, or the gap between two shapes; layer_gap with page_id measures two placed layers. kind picks the shape and the schema lists the fields each kind takes. Returns paths, width and height (and x, y to place it). Read-only; it draws nothing. Pass the result to a vector layer in create_layers; to combine layers already in a design use edit_structure boolean, for charts make_chart, and for artwork import_svg.

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": {
      "kind": "<kind>"
    },
    "name": "shape_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNo
bNo
opNo
toNo
capNo
endNo
bendNo
formNo
fromNo
headNo
joinNo
kindYes
seedNo
x_toNo
depthNo
pathsNo
sidesNo
startNo
sweepNo
teethNo
turnsNo
widthNo
y_maxNo
y_minNoFix the y range (default: the function's own min and max).
aspectNo
closedNo
cornerNo
heightNo
intentNoOptional: a few words on why.
jitterNo
pointsNo
radiusNo
smoothNo
wobbleNo
x_fromNo
page_idNoThe page to work on, as returned by create_design.
samplesNo
positionNo
amplitudeNo
expressionNo
wavelengthNo
inner_ratioNo
inner_radiusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / description
      Previous value: -"kind=\"arc\": An open arc for a stroke (a gauge, a progress ring's track). kind=\"text_arc\": An arc for `text_path`: centred on the top or bottom of a circle and running the way text reads upright there. `sweep` is its angle in degrees (default 180). Bottom text stands inside the arc. kind=\"sector\": A filled wedge; with `inner_radius` a ring segment (a donut slice). kind=\"ring\": A full ring (a circle with a hole). kind=\"polygon\": A regular polygon with rounded corners (`corner` px, 0 = sharp). kind=\"star\": A star; `inner_ratio` is the inner radius as a fraction of `radius`, `corner` rounds its points and notches (px, 0 = sharp). kind=\"spiral\": An Archimedean spiral from the centre outwards. kind=\"wave\": A wave across `width`: sine, zigzag or square, `amplitude` px each side of the middle, one repeat every `wavelength` px. kind=\"gear\": A gear (cog) with `teeth`, tooth `depth` px. kind=\"arrow\": An arrow from one point to another, `bend` px sideways at the middle (0 = straight), with a head `head` px long. Coordinates are yours; the result says where to place the layer (x, y). kind=\"blob\": An organic blob: `points` lobes, `wobble` 0-1, same `seed` same blob. kind=\"burst\": A comic or sale-badge burst: `points` jagged spikes round `radius`, notches at `inner_ratio` of it, each spike's length and angle varied by `jitter` 0-1 (same `seed` same burst), stretched `aspect` times wider than tall. kind=\"points\": A smooth (or straight) line through your points, in your coordinates. kind=\"function\": The graph of y = f(x): `expression` in `x` (e.g. \"sin(x) * exp(-x/5)\"), sampled from `x_from` to `x_to` and scaled into `width` x `height` (y up). The result gives the y range it found. kind=\"outline\": The filled outline of a stroke `width` px wide along `paths` (SVG path data in your coordinates): a limb, rope or road as one closed shape, with round joins and caps by default. kind=\"combine\": `paths` (SVG path data, same coordinates) combined in order with `op`: union (default), intersect, subtract (the first minus the rest), exclude. For shapes already on the canvas, edit_structure `boolean` does this live. kind=\"gap\": The smallest gap in px between shape `a` and shape `b` (each a list of SVG path data in the same coordinates); 0 when they overlap. For tangent checks: `gap` in the result. kind=\"layer_gap\": The smallest gap in px between two placed layers `a` and `b` (layer ids) of the design, on their laid-out outlines (a vector's paths, an ellipse's oval, any other layer's box; rotation kept); 0 when they overlap."New value: +"kind=\"arc\": An open arc for a stroke (a gauge, a ring's track); 0 = 12 o'clock, clockwise. kind=\"text_arc\": An arc for `text_path`: centred on the top or bottom of a circle and running the way text reads upright there. `sweep` is its angle in degrees (default 180). Bottom text stands inside the arc. kind=\"sector\": A filled wedge; with `inner_radius` a ring segment (a donut slice). kind=\"ring\": A full ring (a circle with a hole). kind=\"polygon\": A regular polygon with rounded corners (`corner` px, 0 = sharp). kind=\"star\": A star; `inner_ratio` is the inner radius as a fraction of `radius`, `corner` rounds its points and notches (px, 0 = sharp). kind=\"spiral\": An Archimedean spiral from the centre outwards. kind=\"wave\": A wave across `width`: sine, zigzag or square, `amplitude` px each side of the middle, one repeat every `wavelength` px. kind=\"gear\": A gear (cog) with `teeth`, tooth `depth` px. kind=\"arrow\": An arrow from one point to another, `bend` px sideways at the middle (0 = straight), with a head `head` px long. Coordinates are yours; the result says where to place the layer (x, y). kind=\"blob\": An organic blob: `points` lobes, `wobble` 0-1, same `seed` same blob. kind=\"burst\": A comic or sale-badge burst: `points` jagged spikes round `radius`, notches at `inner_ratio` of it, each spike's length and angle varied by `jitter` 0-1 (same `seed` same burst), stretched `aspect` times wider than tall. kind=\"points\": A smooth (or straight) line through your points, in your coordinates. kind=\"function\": The graph of y = f(x): `expression` in `x` (e.g. \"sin(x) * exp(-x/5)\"), sampled from `x_from` to `x_to` and scaled into `width` x `height` (y up). The result gives the y range it found. kind=\"outline\": The filled outline of a stroke `width` px wide along `paths` (SVG path data in your coordinates): a limb, rope or road as one closed shape, with round joins and caps by default. kind=\"combine\": `paths` (SVG path data, same coordinates) combined in order with `op`: union (default), intersect, subtract (the first minus the rest), exclude. For shapes already on the canvas, edit_structure `boolean` does this live. kind=\"gap\": The smallest gap in px between shape `a` and shape `b` (each a list of SVG path data in the same coordinates); 0 when they overlap. For tangent checks: `gap` in the result. kind=\"layer_gap\": The smallest gap in px between two placed layers `a` and `b` (layer ids) of the design, on their laid-out outlines (a vector's paths, an ellipse's oval, any other layer's box; rotation kept); 0 when they overlap."
  2. Changed5 schema fields changed
    • addedInput schema / $defs / TextArcPosition
      Added value: +{
      +  "enum": [
      +    "top",
      +    "bottom"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / description
      Previous value: -"kind=\"arc\": An open arc for a stroke (a gauge, a progress ring's track). kind=\"sector\": A filled wedge; with `inner_radius` a ring segment (a donut slice). kind=\"ring\": A full ring (a circle with a hole). kind=\"polygon\": A regular polygon with rounded corners (`corner` px, 0 = sharp). kind=\"star\": A star; `inner_ratio` is the inner radius as a fraction of `radius`, `corner` rounds its points and notches (px, 0 = sharp). kind=\"spiral\": An Archimedean spiral from the centre outwards. kind=\"wave\": A wave across `width`: sine, zigzag or square, `amplitude` px each side of the middle, one repeat every `wavelength` px. kind=\"gear\": A gear (cog) with `teeth`, tooth `depth` px. kind=\"arrow\": An arrow from one point to another, `bend` px sideways at the middle (0 = straight), with a head `head` px long. Coordinates are yours; the result says where to place the layer (x, y). kind=\"blob\": An organic blob: `points` lobes, `wobble` 0-1, same `seed` same blob. kind=\"burst\": A comic or sale-badge burst: `points` jagged spikes round `radius`, notches at `inner_ratio` of it, each spike's length and angle varied by `jitter` 0-1 (same `seed` same burst), stretched `aspect` times wider than tall. kind=\"points\": A smooth (or straight) line through your points, in your coordinates. kind=\"function\": The graph of y = f(x): `expression` in `x` (e.g. \"sin(x) * exp(-x/5)\"), sampled from `x_from` to `x_to` and scaled into `width` x `height` (y up). The result gives the y range it found. kind=\"outline\": The filled outline of a stroke `width` px wide along `paths` (SVG path data in your coordinates): a limb, rope or road as one closed shape, with round joins and caps by default. kind=\"combine\": `paths` (SVG path data, same coordinates) combined in order with `op`: union (default), intersect, subtract (the first minus the rest), exclude. For shapes already on the canvas, edit_structure `boolean` does this live. kind=\"gap\": The smallest gap in px between shape `a` and shape `b` (each a list of SVG path data in the same coordinates); 0 when they overlap. For tangent checks: `gap` in the result. kind=\"layer_gap\": The smallest gap in px between two placed layers `a` and `b` (layer ids) of the design, on their laid-out outlines (a vector's paths, an ellipse's oval, any other layer's box; rotation kept); 0 when they overlap."New value: +"kind=\"arc\": An open arc for a stroke (a gauge, a progress ring's track). kind=\"text_arc\": An arc for `text_path`: centred on the top or bottom of a circle and running the way text reads upright there. `sweep` is its angle in degrees (default 180). Bottom text stands inside the arc. kind=\"sector\": A filled wedge; with `inner_radius` a ring segment (a donut slice). kind=\"ring\": A full ring (a circle with a hole). kind=\"polygon\": A regular polygon with rounded corners (`corner` px, 0 = sharp). kind=\"star\": A star; `inner_ratio` is the inner radius as a fraction of `radius`, `corner` rounds its points and notches (px, 0 = sharp). kind=\"spiral\": An Archimedean spiral from the centre outwards. kind=\"wave\": A wave across `width`: sine, zigzag or square, `amplitude` px each side of the middle, one repeat every `wavelength` px. kind=\"gear\": A gear (cog) with `teeth`, tooth `depth` px. kind=\"arrow\": An arrow from one point to another, `bend` px sideways at the middle (0 = straight), with a head `head` px long. Coordinates are yours; the result says where to place the layer (x, y). kind=\"blob\": An organic blob: `points` lobes, `wobble` 0-1, same `seed` same blob. kind=\"burst\": A comic or sale-badge burst: `points` jagged spikes round `radius`, notches at `inner_ratio` of it, each spike's length and angle varied by `jitter` 0-1 (same `seed` same burst), stretched `aspect` times wider than tall. kind=\"points\": A smooth (or straight) line through your points, in your coordinates. kind=\"function\": The graph of y = f(x): `expression` in `x` (e.g. \"sin(x) * exp(-x/5)\"), sampled from `x_from` to `x_to` and scaled into `width` x `height` (y up). The result gives the y range it found. kind=\"outline\": The filled outline of a stroke `width` px wide along `paths` (SVG path data in your coordinates): a limb, rope or road as one closed shape, with round joins and caps by default. kind=\"combine\": `paths` (SVG path data, same coordinates) combined in order with `op`: union (default), intersect, subtract (the first minus the rest), exclude. For shapes already on the canvas, edit_structure `boolean` does this live. kind=\"gap\": The smallest gap in px between shape `a` and shape `b` (each a list of SVG path data in the same coordinates); 0 when they overlap. For tangent checks: `gap` in the result. kind=\"layer_gap\": The smallest gap in px between two placed layers `a` and `b` (layer ids) of the design, on their laid-out outlines (a vector's paths, an ellipse's oval, any other layer's box; rotation kept); 0 when they overlap."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "arc",
      -  "sector",
      -  "ring",
      -  "polygon",
      -  "star",
      -  "spiral",
      -  "wave",
      -  "gear",
      -  "arrow",
      -  "blob",
      -  "burst",
      -  "points",
      -  "function",
      -  "outline",
      -  "combine",
      -  "gap",
      -  "layer_gap"
      -]New value: +[
      +  "arc",
      +  "text_arc",
      +  "sector",
      +  "ring",
      +  "polygon",
      +  "star",
      +  "spiral",
      +  "wave",
      +  "gear",
      +  "arrow",
      +  "blob",
      +  "burst",
      +  "points",
      +  "function",
      +  "outline",
      +  "combine",
      +  "gap",
      +  "layer_gap"
      +]
    • addedInput schema / properties / position
      Added value: +{
      +  "$ref": "#/$defs/TextArcPosition",
      +  "type": "string"
      +}
    • addedInput schema / properties / sweep
      Added value: +{
      +  "default": 180,
      +  "type": "number"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds useful context: it draws nothing, returns paths, width and height plus x/y placement, and is a pure computation step rather than a canvas mutation.

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 description is front-loaded and free of filler, with every sentence serving routing, return-shape or usage guidance. The first sentence is very dense and runs through many shape families, but that density is justified by the tool's polymorphism.

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 highly polymorphic 43-parameter tool, the description is complete enough: safety is handled by annotations, return values are stated despite no output schema, and sibling alternatives are named. It does not explain per-kind required fields or error behavior, but the schema's kind documentation covers much of that.

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?

With 43 parameters and only 7% property-level description coverage, the description does not itself explain each field per kind; it defers with 'the schema lists the fields each kind takes.' The schema-level kind documentation carries most parameter meaning, while the description adds only selected semantics such as jitter, seed, aspect and layer_gap's page_id usage.

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?

The description opens with a specific verb and resource: 'Compute exact SVG path data for a vector layer,' then enumerates the supported shape and operation families. It clearly distinguishes this geometry-generation tool from create_layers, edit_structure, make_chart and import_svg.

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?

It explicitly routes the agent: pass the result to a vector layer in create_layers, use edit_structure boolean for combining existing layers, make_chart for charts, and import_svg for artwork. It also clarifies that layer_gap with page_id measures two placed layers.

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