Skip to main content
Glama
excalidraw-mcp

excalidraw-mcp

by thiendt1608

update_element

Modify an existing Excalidraw element by its ID, updating only the fields you provide such as position, size, color, text, or style.

Instructions

Update an existing element by ID. Only provided fields will be updated.

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": {
      "id": "<id>"
    },
    "name": "update_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
idYesID of the element to update (required)
textNo
typeNo
colorNoAlias for strokeColor in text elements
widthNo
heightNo
pointsNoArray of points [[0,0], [dx,dy]] for arrows and lines
opacityNo
fontSizeNo
fillStyleNo
roughnessNo
textAlignNo
fontFamilyNo1 (Virgil), 2 (Helvetica), 3 (Cascadia), 5 (Excalifont)
strokeColorNo
strokeStyleNo
strokeWidthNo
endArrowheadNo
verticalAlignNo
backgroundColorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

C2.9/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 behavioral burden. It does disclose one genuinely important trait — patch semantics via 'Only provided fields will be updated' — but says nothing about failure on a nonexistent ID, whether geometry changes affect children or frames, or what the response looks like.

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?

Two sentences, front-loaded with the operation and followed by the most decision-relevant caveat. Nothing is padded, though the extreme brevity borders on under-specification for a 21-parameter tool.

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?

A high-parameter mutation tool with zero annotations, no output schema, and sparse schema descriptions needs far more: error behavior, coordinate/point conventions, and the effect of changing 'type' are all unaddressed. An agent could call it, but not confidently.

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 coverage is only 19% across 21 parameters, so the description must compensate and largely does not. The sole semantic contribution is that unlisted fields are left untouched, which explains why 20 of 21 parameters are optional, but none of the geometry, styling, or text properties get meaning from the description.

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 ('Update an existing element') plus the addressing mechanism ('by ID'), which cleanly separates it from create_element, delete_element, and query_elements. It does not explicitly name siblings, but the operation is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no mention of how to obtain a valid ID, and no indication of when to prefer create_element or batch alternatives. The only inferable guidance is that the element must already exist, which is implied rather than stated.

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