Skip to main content
Glama

Draw shapes

shape

Draw rectangles, ellipses, polygons, paths, and other vector forms with fills, strokes, rotation, and hand-drawn brush outlines.

Instructions

Draw vector shapes: rect, ellipse, circle, polygon, polyline, line, star, regular polygon, arc, pie, or any SVG path. Each can have a fill (color / gradient / pattern), a crisp vector stroke, a HAND-DRAWN brush outline (brush), rotation, opacity, blend and drop shadow.

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": {
      "shapes": "<shapes>"
    },
    "name": "shape"
  }
}

Input Schema

NameRequiredDescriptionDefault
layerNoLayer id, name, or index (0 = bottom, -1 = top). Default: the active layer.
shapesYesShapes to draw in order
targetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses drawing options (fill, stroke, brush, rotation, opacity, blend, shadow) but does not state whether the operation is additive, destructive, undoable, or permission-gated. It gives moderate behavioral context without contradicting anything.

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 two sentences, front-loaded with the shape list followed by styling features. It is efficient and avoids unnecessary wording, though the second sentence is a dense list that could be slightly more scannable.

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

Completeness3/5

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

The schema is rich and covers most parameters, so the description does not need to explain them in detail. However, it omits operational context such as whether drawing occurs on the active layer, whether existing content is affected, or what the tool returns (no output schema). The description is adequate but not fully complete for a complex drawing tool.

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 coverage is 67%, so many parameters are already documented. The description adds some meaning by naming shape kinds and highlighting the brush outline option, but it largely repeats categories already present in the schema without adding coordinate or format details.

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 uses a specific verb 'Draw' and enumerates the exact shape types (rect, ellipse, circle, polygon, polyline, line, star, regular polygon, arc, pie, path). It clearly distinguishes this tool from sibling tools like fill, stroke, and text by focusing on vector shape creation.

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

Usage Guidelines3/5

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

Usage is implied by the description of drawing shapes, but there is no explicit when-to-use guidance versus alternatives such as fill, stroke, or text. No exclusions or conditions are provided to help an agent choose this tool over siblings.

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