Skip to main content
Glama
zzmkxd

excalidraw-mcp-obsidian

by zzmkxd

get_selection

Reads the Obsidian selection bridge file to get a summary of selected Excalidraw elements (IDs, type, text, bounds), with optional full JSON payload.

Instructions

Read the Obsidian selection bridge file written by the "AI Edit Selected" EA script (.ai-selection.json). Returns a summary of selected elements (ids, type, text, bounds) and optional instruction. Pass fullJson=true for the raw payload.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fullJsonNoInclude full JSON payload after the summary
Behavior4/5

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

The description discloses the tool's core behavior: it reads a specific file, returns a summary, and optionally includes the full JSON payload. Since no annotations are provided, the description carries the burden of explaining the operation. It doesn't cover error scenarios, but for a simple read-only tool this is adequate.

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 two sentences, with the first sentence front-loading the core purpose and the second explaining parameter usage. There is no redundancy or filler.

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

Completeness4/5

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

The description covers the tool's purpose, return value, and parameter behavior. It lacks explicit error handling or file path details, but given the tool's simplicity and the presence of no output schema, it is sufficiently complete for an agent to invoke it correctly.

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?

The input schema already describes fullJson as a boolean, but the description adds that passing fullJson=true returns the raw payload, clarifying the exact effect and intended use. This adds value beyond the schema's minimal definition.

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 identifies the tool as reading the Obsidian selection bridge file and returning a summary of selected elements (ids, type, text, bounds) plus optional instruction. This distinguishes it from sibling tools like get_element or query_elements, which operate directly on the canvas.

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?

It provides clear context for when to use this tool: after the 'AI Edit Selected' EA script writes the .ai-selection.json file. However, it does not explicitly mention alternatives or exclusion cases, so it stops short of a 5.

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