Skip to main content
Glama

Draw a custom shape

generate_shape

Draw 1–4 custom SVG outline shapes from a plain-language description for notes or diagrams, returning candidates to preview or apply.

Instructions

Draw custom outlines for notes from a description, such as a rocket or a speech bubble.

Draw shapes. Draw 1 to 4 outlines for notes from a description ("a rocket", "a speech bubble with the tail on the left"), using the AI feature shape (counted like other AI use). Each candidate is one checked SVG path: shapes.apply takes its candidateId (good for 30 days), and an applyOperations update_nodes or add_nodes plan takes {name, d, fillRule} as the shape. The same description again returns the same candidates at no cost unless fresh is true. At most 20 drawings per person per hour.

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": {
      "describe": "<describe>"
    },
    "name": "generate_shape"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNosave (the default) writes; preview returns what would change and saves nothing. The response says which happened.save
countNo
freshNoDraw new ones instead of returning the last ones for this description.
confirmNoThe confirmation id from a confirmation_required result, once the person agreed.
describeYesThe shape, in plain words.
idempotencyKeyNoSend with confirm: the idempotencyKey from the confirmation_required result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=false, destructiveHint=false, openWorldHint=true), and the description adds genuinely non-obvious context: the call consumes AI usage, candidates expire after 30 days, identical descriptions are cached for free, and there is a 20-per-person-per-hour rate limit. It does not explain where the drawn shapes land or how the save/preview and confirm flow behaves, which the schema carries instead.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening sentence and the second sentence ('Draw shapes. Draw 1 to 4 outlines for notes from a description...') restate the same idea, wasting the highest-value position. The remaining sentences are dense but each carries distinct facts about expiry, caching, cost, and rate limits. Front-loading is weakened by the duplication.

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 6-parameter, open-world generation tool with no output schema, the description covers cost, expiry, caching, limits, and how the result feeds the apply step, which is what an agent needs to sequence calls. It leaves the save/preview and confirm/idempotency flow entirely to the schema, a minor gap but not a blocking one.

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 83%, so the schema already documents most parameters, but the description adds real meaning: it clarifies that count maps to 'draw 1 to 4 outlines', reinforces fresh as regeneration, and describes the exact downstream payload shape {name, d, fillRule} for applyOperations plans. This goes beyond restating field names.

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?

States a specific verb and resource (draw custom outlines/shapes for notes from a plain-language description) and gives concrete input examples ('a rocket', 'a speech bubble with the tail on the left'). It also signals the boundary with the apply step by explaining that shapes.apply consumes a candidateId, so an agent can tell generation apart from application. It never names the sibling tool directly, keeping it just short of a 5.

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

Usage Guidelines4/5

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

Explains the reuse case clearly: the same description returns the same candidates at no cost unless fresh is true, and candidates stay valid for 30 days, which tells an agent when to re-call versus reuse. It also states the generation count range (1 to 4) and the hourly ceiling. It does not explicitly say when to prefer this over the apply/other drawing paths beyond the candidateId handoff.

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

Deploy Server

Other Tools