Skip to main content
Glama

paint_shape

Draw geometric shapes—rectangles, ellipses, polygons, lines, and bezier curves—with fills and outlines on editable vector or raster layers, with smooth-curve and antialiasing controls.

Instructions

Geometry rendered only within its own bounds (fast even on big canvases). Points are pairs [[x,y],...]. Box shapes use two corners in either order; cubic bezier four control points. Zero-size boxes and polygons with <3 distinct points are skipped (result 'skipped'), not errors. Fill+outline in one call keeps outlines on edges. smooth=true: polygon/line through its points as a smooth curve. bleed px widens the fill to hide seams between adjacent antialiased facets. antialias=false paints hard pixels (boxes and polygons cover [x0,x1)). Vector layer retains editable objects, raster layer paints pixels. Pixel selection applies only to raster.

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

Input Schema

NameRequiredDescriptionDefault
fillNo
bleedNo
shapeYes
widthNo
pointsYes
radiusNo
smoothNo
outlineNo
editableNo
layer_idNoTarget layer id or unique layer name; the active layer stays unchanged. Default: active layer
antialiasNo
document_idNoTarget this document instead of the shared active one (recommended when several agents share the server)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does so substantially: it discloses that degenerate inputs are skipped with result 'skipped' instead of erroring, that boxes and polygons cover the half-open interval [x0,x1), that bleed widens fills to mask antialiasing seams, and that editable controls vector-vs-raster persistence. Gaps remain around permissions, target-layer defaults, and what a successful result looks like beyond the 'skipped' case.

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?

Roughly 90 words of dense, front-loaded prose where nearly every clause conveys a non-obvious rule (skip behavior, half-open pixel coverage, bleed purpose). It is telegraphic and unstructured rather than wasteful, though the absence of any grouping makes it slightly harder to scan for a specific parameter's behavior.

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?

For a 12-parameter mutation tool with no annotations and no output schema, the description covers most geometry and raster semantics but omits width and radius meaning and never states which layer or document the paint lands on by default (only the schema's layer_id/document_id descriptions do that). An agent could call it, but would be guessing on stroke weight and rounded-rectangle curvature.

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 only 17%, but the description compensates well: it defines the points format ([[x,y],...]), corner ordering for boxes, four control points for bezier, and the semantics of smooth, bleed, antialias, fill, outline, and editable. It leaves width and radius (both defaulted, geometry-relevant) entirely unexplained, so coverage is strong but not complete.

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 makes clear this renders geometry (rectangle, rounded_rectangle, ellipse, polygon, line, bezier) with the coordinate conventions for each shape family, so an agent can tell it produces drawn shapes rather than brush strokes or fills. The opening sentence ('Geometry rendered only within its own bounds') is a scoping claim rather than an explicit verb+resource statement, and no sibling tool (paint_brush, paint_fill, paint_object) is named for differentiation.

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 rather than stated: 'Fill+outline in one call keeps outlines on edges' tells the agent to combine rather than make two calls, and 'Vector layer retains editable objects, raster layer paints pixels' plus 'Pixel selection applies only to raster' signal when each layer mode applies. There is no explicit when-to-use/when-not and no routing to alternatives like paint_brush or paint_object for freeform or object manipulation.

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