Skip to main content
Glama

add_elements

Add multiple shapes, arrows, text, and images to an Excalidraw diagram with customizable styles and bindings. Supports rectangles, ellipses, diamonds, lines, frames, and more.

Instructions

Add multiple Excalidraw elements to the canvas.

Supported element types:

  • rectangle

  • ellipse

  • diamond

  • arrow

  • text

  • line

  • freedraw

  • image

  • frame/magicframe

  • iframe/embeddable

Style options:

  • strokeColor: e.g. #1e1e1e

  • backgroundColor: e.g. #D97706

  • fillStyle: solid/hachure/cross-hatch

  • strokeWidth: 1-4

  • roughness: 0=architect, 1=artist, 2=cartoonist

Advanced options:

  • label: Auto-create bound text inside shape/arrow containers

  • start/end: Arrow endpoint binding to new or existing elements

  • containerId: DEPRECATED (use label instead)

Multi-session support: Specify sessionId to target a specific session.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionIdNoSession ID. If not provided, uses default session.
elementsYesArray of elements to add
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses supported element types and options, and mentions session targeting, but fails to describe side effects, error behavior, or limits on element count.

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?

The description is well-structured with clear sections and bullet lists, and fairly concise. However, it could be slightly more compact without losing clarity.

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?

Given no output schema, the description should explain return values. It does not. Also, given the complexity of elements, it lacks constraints on ordering, idempotency, and error handling.

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

Parameters3/5

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

Schema coverage is 100%, so baseline is 3. The description adds value by grouping options (style, advanced) and explaining label vs containerId and arrow binding, but most parameter details are already in schema descriptions.

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?

The description clearly states the tool 'Add multiple Excalidraw elements to the canvas', with a specific verb and resource. It distinguishes from siblings like delete_element and update_element.

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?

The description does not provide explicit guidance on when to use this tool versus alternatives like create_diagram or add_template_architecture. It mentions multi-session support but lacks exclusionary criteria.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Scofieldfree/excalidraw-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server