Skip to main content
Glama

add_raw_elements

Add complete Excalidraw elements verbatim from .excalidraw JSON to a live room. Missing version fields and fractional indices are filled automatically.

Instructions

Add complete Excalidraw elements verbatim (the JSON shape from an .excalidraw file). Missing version fields are filled in; fractional indices are assigned if absent. An element carrying customData is stamped with this server's handle as its author, keeping the keys it came with; an element with no customData is left unattributed, so a scene imported from a file still reads as the work of whoever drew it. Hosts cap tool-argument size, so keep each call's arguments under the limit in README Limits (4 KB on Claude Desktop, 16 KB on Claude Code) and send a large scene as several batches; a later batch may reference ids from an earlier one. The change reaches connected peers immediately and the room's stored copy shortly after; a result line beginning NOT PERSISTED means the stored copy is behind and the server is retrying in the background.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
elementsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so richly: it discloses that missing version fields are filled, fractional indices are assigned, customData triggers author-stamping while unattributed elements stay anonymous, argument-size caps per host, batching semantics, immediate peer propagation vs delayed storage, and the meaning of a 'NOT PERSISTED' result line.

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 is front-loaded in the first clause, and each following sentence conveys a distinct operational fact (attribution, size limits, batching, propagation). It is dense and long but virtually every sentence earns its place.

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 mutation tool with no annotations and no output schema, this covers the essential gaps: write semantics, idempotency-adjacent behavior (field filling), permission/attribution model, host limits, batching strategy, and a failure/persistence signal. Nothing an agent needs 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.

Parameters4/5

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

Schema description coverage is 0% and the schema only says a non-empty array of free-form objects, so the description must compensate. It does clarify that 'elements' are complete Excalidraw element JSON, including how version, index, and customData fields are handled on each item, though it doesn't fully enumerate the element shape.

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?

It states a specific verb and resource: 'Add complete Excalidraw elements verbatim (the JSON shape from an .excalidraw file)'. The 'verbatim/raw' framing implicitly distinguishes it from the higher-level add_elements sibling, but the description never names that sibling, so the differentiation is left to inference.

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?

It gives solid how-to guidance (keep arguments under README Limits, batch large scenes, later batches may reference earlier ids), which tells the agent how to invoke it. But it never states when to choose this over add_elements or update_elements, and there are no explicit exclusions or alternatives.

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