Skip to main content
Glama
excalidraw-mcp

excalidraw-mcp

by thiendt1608

create_element

Creates Excalidraw elements—rectangles, ellipses, diamonds, text, arrows, and lines—at specified coordinates to build diagrams through the MCP server.

Instructions

Create a new Excalidraw element (100% Excalidraw v2 spec compliant). Supports rectangle, diamond, ellipse, text, arrow, line.

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

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
idNo
textNo
typeYes
colorNoAlias for strokeColor in text elements
widthNo
heightNo
pointsNoArray of points [[0,0], [dx,dy]] for arrows and lines
opacityNo
fontSizeNo
fillStyleNo
roughnessNo
textAlignNo
fontFamilyNo1 (Virgil), 2 (Helvetica), 3 (Cascadia), 5 (Excalifont)
strokeColorNo
strokeStyleNo
strokeWidthNo
endArrowheadNo
verticalAlignNo
backgroundColorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses almost nothing about the mutation: whether the element is appended to the current scene, whether a canvas must exist first, what identifier is returned for later update_element/delete_element calls, or whether the call is undoable. The phrase "100% Excalidraw v2 spec compliant" is a marketing claim rather than actionable behavior. With 21 parameters and no destructive/read-only signal, this is a substantial gap for a write operation.

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?

Two short sentences, front-loaded with the verb and resource, with no rambling. The parenthetical spec-compliance claim is low-value filler, and the type enumeration belongs more naturally with the schema, but the text is efficient overall.

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 21-parameter mutation tool with no annotations, no output schema, and 14% schema description coverage, the description is far too thin to let an agent call it confidently. It should explain required-vs-optional expectations, the coordinate space, and what the response contains. The only complete information available is the enum of some element types.

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 only 14% across 21 parameters, so the description must compensate and does not. It names six element types while the enum contains nine, and says nothing about the coordinate system for x/y, the meaning of id, width/height defaults, or how the many styling properties interact. Only the enum-type list adds anything over the schema, leaving the majority of parameters undocumented in both places.

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 ("Create a new Excalidraw element") and enumerates the element types it handles, so an agent knows exactly what the tool produces. It does not differentiate against the closest sibling, create_elements_batch, and its type list omits freedraw, image, and frame that the schema enum allows, but the core purpose is unambiguous.

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 pick this single-element tool over create_elements_batch, create_flowchart, or insert_library_item, and no prerequisites are stated. The only implicit signal is the singular word "element" in the name, which is not surfaced or explained in the description. An agent must infer the routing decision entirely from sibling names.

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