Skip to main content
Glama

Read the diagram elements

get_shapes

Lists all diagram shapes and connections with IDs, types, names, positions, parents, and flow endpoints, so agents can inspect the open BPMN model before editing or validating it.

Instructions

Lists the elements of the open diagram: shapes (id, type, name, position, parent, incoming and outgoing flows) and connections (id, type, name, source, target).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden. 'Lists' clearly signals a read-only operation, and the description discloses the returned record structure for both shapes and connections, including relationship fields (parent, incoming/outgoing flows). It does not state ordering, completeness guarantees, or whether it reads only the active document, which keeps it below a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence with the verb and scope front-loaded, followed by a compact field enumeration. The parenthetical field lists are dense but each item earns its place by telling the agent what to expect in the response.

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?

With no parameters and no output schema, the description is the only source of return-value information, and it covers both element categories and their fields well. Minor gaps remain: no statement about ordering, diagram-state assumptions, or whether the call is read-only, though the verb implies 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 the baseline is 4. Nothing in the schema needs explanation, and the description appropriately spends its words on return content instead.

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 and resource ('Lists the elements of the open diagram') and enumerates exactly which element kinds and fields are returned. The 'open diagram' phrasing implicitly scopes it to the currently loaded document, distinguishing it from file-level siblings like get_diagram_xml, but no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is implied by the content enumeration: an agent can infer this is the tool for inspecting diagram elements when the raw XML or image is not needed. However, there is no explicit statement of when to prefer this over get_diagram_xml or get_diagram_image, and no exclusion guidance.

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