Skip to main content
Glama

See the diagram

get_diagram_image

Returns a PNG of the open BPMN diagram so you can visually check layout issues like overlaps and crossing flows, or show the diagram to the user.

Instructions

Returns a PNG image of the open diagram, as drawn on the canvas. Use it to check the layout visually (overlaps, crossing flows, readability), or to show the diagram to the user.

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_image"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/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 disclosure burden, and it does establish that the tool is a pure read returning a raster snapshot of current canvas state. It says nothing about resolution, image size or token cost, whether unsaved edits are reflected, or how large diagrams are handled, which matters for an image-returning call.

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?

Two sentences, front-loaded with the return format and followed by the motivating use cases. Every clause earns its place with no restatement of the title or filler.

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 parameterless read tool with no output schema, the description covers what comes back (a PNG of the open diagram) and why you would call it. The remaining gap is practical call guidance such as rendering cost or how current/saved state affects the image, which would help an agent decide how often to invoke it.

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 there is no parameter meaning to add and the schema is fully self-describing. The description correctly implies a single implicit target, the currently open diagram, rather than anything selectable.

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?

"Returns a PNG image of the open diagram, as drawn on the canvas" names a specific verb (returns), resource (open diagram), and output format (PNG rendered from canvas). That format detail implicitly separates it from sibling serializers like get_diagram_xml and export_diagram, so an agent can tell where it sits without opening another schema.

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?

It gives concrete use cases: visually checking layout for overlaps, crossing flows, and readability, or showing the diagram to the user. That is clear when-to-use guidance, but it never states when not to use it or names the alternative (e.g. get_diagram_xml) for structured inspection.

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