Skip to main content
Glama

Read the BPMN XML

get_diagram_xml

Returns the currently open BPMN 2.0 diagram as XML so agents can inspect, validate, or export the process model.

Instructions

Returns the open diagram as BPMN 2.0 XML.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_diagram_xml"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 burden. 'Returns' implies a read-only, non-mutating operation and the output format is disclosed, but it says nothing about how large the XML payload can be, whether it covers the full diagram or only visible content, or any failure conditions.

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; the resource and return format are stated immediately and nothing is wasted.

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?

For a zero-parameter read that returns a serialized document, the description conveys the essential facts (source = open diagram, output = BPMN 2.0 XML). There is no output schema, but the format is named, so only minor details such as payload size or active-diagram scoping are missing.

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?

The tool takes zero parameters, so the baseline is 4. The description correctly implies no arguments are required, and there is no parameter meaning left unstated.

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 ('Returns'), a specific resource ('the open diagram'), and an explicit format ('BPMN 2.0 XML'). This distinguishes it well enough from get_diagram_image and export_diagram by naming the format, but it does not explicitly contrast itself with set_diagram_xml (the inverse operation) or with export_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?

There is no explicit when-to-use or when-not-to-use guidance. The phrase 'the open diagram' implies it acts on whatever diagram is currently active rather than on an identified diagram, which is useful scoping, but no alternative (e.g. export_diagram, get_diagram_image) is named or excluded.

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