Skip to main content
Glama
zzmkxd

excalidraw-mcp-obsidian

by zzmkxd

create_element

Create Excalidraw shapes, arrows, and text in Obsidian diagrams, using design rules and auto-routing arrows to bound elements.

Instructions

Create a new Excalidraw element. ⚠️ BEFORE using this tool, call read_diagram_guide(template="...") to get design rules (colors, shapes, line types, anti-patterns). For arrows, use startElementId/endElementId to bind to shapes (auto-routes to edges).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYes
yYes
idNoCustom element ID (optional, auto-generated if omitted). Use with startElementId/endElementId in batch_create_elements.
textNo
typeYes
widthNo
heightNo
opacityNo
fontSizeNo
roughnessNo
fontFamilyNoFont family: virgil/hand/handwritten (1), helvetica/sans/sans-serif (2), cascadia/mono/monospace (3), excalifont (5), nunito (6), lilita/lilita one (7), comic shanns/comic (8), or numeric ID
strokeColorNo
strokeStyleNoStroke style: solid, dashed, dotted
strokeWidthNo
endArrowheadNoArrowhead style at end: arrow, bar, dot, triangle, or null
endElementIdNoFor arrows: ID of the element to bind the arrow end to. Arrow auto-routes to element edge.
startArrowheadNoArrowhead style at start: arrow, bar, dot, triangle, or null
startElementIdNoFor arrows: ID of the element to bind the arrow start to. Arrow auto-routes to element edge.
backgroundColorNo
Behavior3/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It adds meaningful behavioral detail by noting that arrows auto-route to element edges when bound via startElementId/endElementId. However, it does not describe side effects, return values, or error scenarios, and the prerequisite to read the guide is more of a usage guideline than a behavioral trait.

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

Conciseness5/5

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

The description is compact: two sentences. The first is a direct statement of purpose. The second integrates an important warning and a targeted tip about arrow binding without unnecessary fluff. Every sentence earns its place, and the information is front-loaded.

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?

The tool has 19 parameters, no output schema, and no annotations, so the description needs to carry substantial explanatory weight. It covers the arrow-binding case and the design-guide prerequisite, but leaves many parameters unexplained, does not state what the return value is, and offers no guidance on common usage patterns. This is insufficient for a tool of this complexity.

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 low (37%), with many parameters like x, y, width, and height lacking descriptions. The description adds some meaning by emphasizing startElementId and endElementId for arrows, but it does not explain the majority of parameters. Given the low schema coverage, the description should compensate more than it does.

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 core action and resource: 'Create a new Excalidraw element.' This specific verb+resource phrasing separates it from sibling tools like update_element, delete_element, and batch_create_elements. It also adds relevant arrow-binding details that further clarify the tool's purpose.

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?

The description provides an explicit prerequisite: call read_diagram_guide(template="...") before using the tool to get design rules. It also gives guidance for arrows, telling the agent to use startElementId/endElementId to bind to shapes. While it doesn't explicitly contrast with batch_create_elements, the sibling names make the single-element scope clear, so usage context is well implied.

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/zzmkxd/excalidraw-mcp-obsidian'

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