Skip to main content
Glama

Create drawing

create_drawing

Creates a new Excalidraw drawing from shapes, text, connectors, or a Mermaid flowchart, lays it out automatically, and returns a shareable link.

Instructions

Creates a NEW drawing from simple elements and/or a Mermaid flowchart, and returns its link. To change an existing drawing, use edit_drawing.

Elements: shapes ("rectangle", "ellipse", "diamond") with an optional label; "text"; and "arrow" or "line" connectors that join shapes by id ("from", "to") or run between points ("start", "end"). Shapes and text without x/y are laid out automatically, in "direction", with arrows routed between them; labels wrap and shapes grow to fit. Auto-layout gives the cleanest diagrams: give x/y (top-left, pixels, y grows down) only for layouts a graph can't express, such as grids or timelines. Keep arrow labels to a few words; put detail in shape labels or a text note.

Mermaid: a "flowchart"/"graph" diagram, with node shapes, edge labels, dotted and thick edges, subgraphs (drawn as titled boxes), and node colors from "style id fill:#a5d8ff,stroke:#1971c2" lines (hex or named colors) (classDef and class are ignored). Other Mermaid diagram types are not supported. Both can be sent at once: they are laid out together, and arrows may join flowchart nodes by their Mermaid ids. Up to 500 elements in all, Mermaid nodes and edges included.

Colors: Excalidraw's palette reads best, e.g. backgrounds "#a5d8ff" (blue), "#b2f2bb" (green), "#ffec99" (yellow), "#ffc9c9" (red), "#d0bfff" (violet), "#e9ecef" (gray).

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

Input Schema

NameRequiredDescriptionDefault
nameYes
spaceNoDefault "private". Ignored with folderId: a drawing takes its folder's Space.private
mermaidNoA Mermaid flowchart.
elementsNo
folderIdNoPut it in this folder (see list_folders).
directionNoAuto-layout flow: "TB" top to bottom (default), "LR" left to right, "BT", "RL". Default for Mermaid: its own header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.1

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare non-readonly, non-idempotent, non-destructive; the description adds the meaningful behavior: a link is returned, the 500-element cap, that both inputs are laid out together, that arrows can bind to Mermaid ids, and which Mermaid constructs are silently ignored (classDef/class). Those are exactly the details an agent needs before committing to a call.

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?

Purpose and the edit_drawing alternative come first, then labeled sections for elements, Mermaid, and colors, which makes it scannable. It is long, but nearly every clause carries operational detail; only the palette listing is close to padding.

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

Completeness5/5

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

For a complex creator with a deeply nested union schema and no output schema, the description covers input composition, layout behavior, limits, return value, and unsupported features. Nothing an agent needs in order to call it correctly is missing.

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

Parameters5/5

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

Well beyond the 67% schema coverage, the description explains the element model: shape/text/connector kinds, connectors joined by id via 'from'/'to' or by 'start'/'end' points, auto-layout with 'direction', label wrapping and shape growth, and coordinate origin with y growing down. The color palette guidance (hex examples and named colors) also adds practical meaning the schema lacks.

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?

Opens with a specific verb and resource ('Creates a NEW drawing from simple elements and/or a Mermaid flowchart, and returns its link') and immediately distinguishes itself from the sibling edit_drawing. The scope (elements vs Mermaid vs both) is spelled out so an agent knows exactly what this tool accepts.

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?

Explicitly routes mutation of existing drawings to edit_drawing, and gives positive guidance on when to supply x/y versus relying on auto-layout ('give x/y ... only for layouts a graph can't express, such as grids or timelines'). It also states that Mermaid types other than flowchart/graph are unsupported, which prevents a whole class of misuse.

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