Skip to main content
Glama

add_node

Add new nodes to draw.io diagrams using predefined shapes or custom styles. Control x/y coordinates, label, size, and page index for precise placement.

Instructions

Add a new node (shape/vertex) to a draw.io diagram. Use the "shape" parameter for predefined styles, or provide a custom "style" string.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoX position (default: 0)
yNoY position (default: 0)
idNoCustom ID for the node (auto-generated if not provided)
labelYesText label displayed inside the node
shapeNoPredefined shape name. Available: rectangle, roundedRectangle, ellipse, diamond, parallelogram, hexagon, triangle, cylinder, cloud, document, process, star, callout, actor, component, package, interface, start, end, decision, processStep, inputOutput, server, database, firewall, user, container, blue, green, red, yellow, purple, orange, gray
styleNoCustom draw.io style string (overrides shape if both provided)
widthNoWidth in pixels (default: 120)
heightNoHeight in pixels (default: 60)
filePathYesPath to the .drawio file
pageIndexNoPage index to add to (0-based, default: 0)
Behavior2/5

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

No annotations are present, so the description must disclose behavioral traits. It mentions the shape/style usage, but does not explain side effects such as whether the file is modified in place, how duplicates are handled, or reversibility. As a mutation tool, this lack of disclosure is a significant gap.

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, front-loaded with the core purpose and a parameter tip. There is no filler or redundant information; every sentence earns its place.

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?

With 10 parameters and no output schema, the description is adequate but not comprehensive. The schema covers all parameters, and the description gives the essential purpose and shape/style hint, but it doesn't provide context about defaults, return values, or behavioral side effects, making it a minimally viable description.

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?

Schema description coverage is 100%, giving a baseline of 3. The description adds value by clarifying the relationship between the shape and style parameters (predefined shapes vs. custom style string), which goes slightly beyond the schema's individual descriptions.

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's function: 'Add a new node (shape/vertex) to a draw.io diagram.' It uses a specific verb and resource, and distinguishes the tool from siblings like add_edge and add_page by focusing on adding nodes (shapes/vertices).

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?

The description provides clear context: this tool is for adding a single node to a diagram. It does not explicitly mention alternatives like batch_add_elements for adding multiple nodes, but the purpose is unambiguous, so it meets the 'clear context, no exclusions' bar.

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

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