Skip to main content
Glama

update_diagram_file

Modify .drawio diagram files by moving, resizing, relabeling, restyling, adding vertices and edges, or removing elements. Requires prior inspection of cell IDs via read_diagram_file.

Instructions

Modify an existing .drawio diagram file. Supports operations: move (absolute), move_by (relative offset), resize, relabel, restyle, add_vertex, add_edge, remove. Use read_diagram_file first to inspect cell IDs, then call update_diagram_file with the target operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesPath to .drawio file to update
operationsYesList of operations to apply
Behavior4/5

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

No annotations are provided, but the description discloses the modification nature and lists all operation types. It doesn't detail failure modes or atomicity, but the key behaviors are transparent given the tool's straightforward mutation purpose.

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?

Three sentences with zero fluff. Front-loaded with purpose, then operations, then workflow. Every sentence is essential and well-structured.

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?

Given the tool's complexity (multiple operation types) and no output schema, the description covers purpose, operations, and workflow adequately. It could be improved by hinting at return values or error handling, but overall it provides sufficient context for an agent.

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 coverage is 100%, so the description adds minimal new meaning. It summarizes operation types (e.g., move vs move_by) but the schema already captures these via const values. The description does not significantly enhance parameter understanding beyond the schema.

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 tool modifies an existing .drawio file and lists supported operations. It distinguishes itself from sibling tools that create diagrams (draw_*) or read files (read_diagram_file).

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

Usage Guidelines5/5

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

Explicitly instructs to use read_diagram_file first to inspect cell IDs, then call update_diagram_file with target operations. Provides clear context on prerequisites and proper workflow.

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

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