Skip to main content
Glama

create_shape

Creates geometric shapes—rectangles, ellipses, diamonds, and circles—with optional labels, frame containment, and visual styling for Excalidraw diagrams.

Instructions

Create a geometric shape (rectangle, ellipse, diamond) with optional label, frame containment, and visual styling.

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": {
      "type": "<type>",
      "x": "<x>",
      "y": "<y>",
      "w": "<w>"
    },
    "name": "create_shape"
  }
}

Input Schema

NameRequiredDescriptionDefault
hNo
wYes
xYes
yYes
typeYes
labelNo
opacityNo
frame_idNo
fillStyleNo
font_sizeNo
roughnessNo
roundnessNo
font_familyNo
strokeColorNo
strokeStyleNo
strokeWidthNo
backgroundColorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations declare openWorldHint=false, destructiveHint=false, and idempotentHint=false, meaning repeat calls create duplicate elements, but the description never warns about that or says what the call returns (a shape id an agent could reuse for updates?). With no output schema, return-value behavior is entirely undisclosed, which is a notable gap for a 17-parameter creation tool.

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?

One front-loaded sentence with no padding, and the core action comes first. It is efficient but underspecified rather than genuinely concise, so it loses a point for spending its words on vague groupings like 'visual styling'.

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

Completeness2/5

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

For a 17-parameter mutation tool with no output schema and 0% parameter documentation, the description is far too thin. An agent cannot tell from it how geometry is positioned, which styling fields exist, or what comes back after creation.

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

Parameters2/5

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

Schema description coverage is 0% across 17 parameters, so the description must carry the semantics and it does not. Phrases like 'visual styling' lump together roughly ten distinct fields (strokeColor, fillStyle, roughness, roundness, opacity, font_family, etc.) without naming any of them, and it says nothing about the coordinate system, units, or that h is optional and may be auto-derived.

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 names a concrete verb and resource ('Create a geometric shape') and enumerates the supported kinds, which separates it from siblings like add_text and create_connector. It is slightly inaccurate, though: the schema's type enum also accepts 'circle', which the description omits.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus add_text, add_frame, or create_connector, and nothing about whether a shape should be attached to an existing frame_id or created standalone. The agent must infer all placement decisions from the schema alone.

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