Skip to main content
Glama
S-SUJAN-S

antigravity-drawio-mcp

by S-SUJAN-S

parse_diagram

Extract structured nodes, edges, and page metadata from a .drawio XML file to enable programmatic diagram analysis.

Instructions

Parse a .drawio XML file and extract structured nodes, edges, and page metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. 'Parse' and 'extract' imply a non-mutating read operation, which is helpful, but the description does not mention prerequisites, error behavior, or whether the input file is left unmodified.

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?

A single front-loaded sentence with no filler. It states the action, the input, and the output in one pass, making it easy for an agent to scan.

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?

The tool is simple (one required parameter) and an output schema exists, so the description does not need to enumerate return fields. It covers the essential input and extraction scope, though it omits edge cases like invalid XML or missing files.

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 0%, so the description must compensate for the bare 'input_path' parameter. It adds that the value is a '.drawio XML file', which gives useful type context, but it does not clarify path formats, existence requirements, or supported file locations.

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 uses a specific verb ('Parse') and resource ('.drawio XML file') and names the extracted outputs: nodes, edges, and page metadata. It is clear about what the tool does, though it does not explicitly differentiate itself from the sibling analyze_diagram.

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 gives no guidance on when to prefer this tool over siblings like analyze_diagram or validate_diagram. It states the action but provides no context, exclusions, or alternative routing.

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