Skip to main content
Glama
excalidraw-mcp

excalidraw-mcp

by thiendt1608

insert_library_item

Insert a pre-built Excalidraw library item or built-in icon at specified X/Y coordinates with optional scale to place reusable visuals on a canvas.

Instructions

Insert a pre-built library item (icon) at the specified position with optional scale. Supports items from all 8 official Excalidraw libraries plus built-in icons.

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": {
      "itemId": "<itemId>",
      "x": "<x>",
      "y": "<y>"
    },
    "name": "insert_library_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYesX position on canvas
yYesY position on canvas
scaleNoScale factor (default: 1)
itemIdYesLibrary item ID or name (e.g., "aws-architecture-icons:dynamodb", "google-icons:anthos", "software-logos:docker", "dynamodb", "redis", "server")
libraryNoOptional library name to narrow search

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it does add useful scope information (pre-built items only, 8 official libraries plus built-ins) beyond the name. However, for a mutating insert it says nothing about what happens when itemId is unknown or ambiguous, whether insertion can collide with existing elements, or what is returned. The load-bearing behavioral details are missing.

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?

Two front-loaded sentences with no filler; the core action comes first and the library-scope constraint follows. Nothing is duplicated or padded, and the wording is unambiguous.

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

Completeness3/5

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

For a five-parameter mutation with no annotations and no output schema, the definition covers what the tool inserts and from where, but omits error behavior, the relationship to list_library_items for obtaining itemIds, and any note on what an insert produces on the scene. It is adequate to attempt a call but not complete enough to predict edge cases.

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 description coverage is 100%, so all five parameters are already documented in the schema, including the itemId examples and the optional library narrowing. The description only restates position and optional scale, adding no format, default, or matching semantics beyond what the schema provides. Baseline 3 applies when the schema does the heavy lifting.

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 ("Insert a pre-built library item (icon)") plus the placement and scale modifiers, which is concrete enough to separate it from create_element. The second sentence scopes the item universe to the 8 official Excalidraw libraries plus built-ins. It stops short of naming create_element or list_library_items as the alternative paths, so sibling differentiation is implicit rather than stated.

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?

Usage is only implied: the agent can infer this is for pre-built icon/library items rather than arbitrary shapes, but the description never says when to prefer it over create_element or that itemIds are discoverable via list_library_items. No exclusions, prerequisites, or failure conditions are given. This is the minimum viable level of guidance.

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