Skip to main content
Glama
Geoffrey-Fang

Draw.io MCP Server

update_element

Update properties of an existing diagram element such as position, size, text, style, and more. Specify the diagram, element ID, and desired changes to modify elements directly.

Instructions

更新现有元素的属性

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
optionsNo更新选项
updatesYes要更新的属性
diagram_idYes图表ID
element_idYes要更新的元素ID
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the basic update action and does not mention validation, style merging, connection updates, or potential side effects, even though the schema options imply these behaviors.

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 a single, concise sentence that conveys the core purpose without any fluff. It is front-loaded and immediately understandable, earning a perfect score for conciseness.

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?

Given the tool's complexity—nested update objects, merge options, connection updates—the description is too sparse. It lacks guidance on usage scenarios, side effects, or return behavior, making it inadequate 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.

Parameters3/5

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

All parameters have schema descriptions, so the description adds no extra parameter meaning. The tool description does not explain partial updates or the effect of options, but the schema already covers the parameter details, yielding a baseline score of 3.

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?

The description '更新现有元素的属性' clearly states the tool updates an existing element's attributes, with a specific verb and resource. It distinguishes from add_element and delete_element, but does not explicitly differentiate from the sibling update_style, which could overlap in purpose.

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?

The description provides no guidance on when to use this tool versus alternatives. It lacks context on prerequisites, when to prefer this over update_style or add_element, or any exclusions.

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/Geoffrey-Fang/drawio-mcp'

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