Skip to main content
Glama

simulate_bpmn

Read-onlyIdempotent

Run the editor's BPMN token simulator without writing. Pass nodeId of your BPMN document or source (exactly one). The token starts at the first start event; user/manual tasks continue on their own, XOR/OR take the weather branch (sun = default/yes, rain = no). Returns {ok:true, outcome (finished | deadlock | limitReached), finished, deadlock, limitReached, trace[{step, action (start | arrive | branch | auto | continue), nodeId, nodeType, edgeId, spawned, consumed, tokens}], waiting, warnings}. maxSteps defaults to 200, max 2000. Refusal: ok:false with reason (not_bpmn | parse_invalid | empty_diagram | no_start_event), hint and doc (a get_doc section). 404 if the node is not yours. Same output for the same input. Does not spend AI credits.

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": "simulate_bpmn"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeIdNo
sourceNo
weatherNo
maxStepsNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent safe behavior; the description adds substantial context beyond that: the token start point, automatic task continuation, XOR/OR weather semantics, default and max maxSteps, deterministic same-output-for-same-input behavior, no AI credit spend, 404 ownership failure, and a full refusal contract with reason codes. This is exactly the extra context the lower annotation bar asks for.

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?

Dense and front-loaded: purpose first, then input rules, then branching, then return shape, then limits and failures. It is long but nearly every clause carries operational information; the return-shape enumeration is verbose but earns its place and serves as a de facto output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given four undocumented parameters, no output schema, and only safety annotations, the description fills the gaps: input exclusivity, limits, failure modes, and a complete return structure. An agent could call this correctly and parse the result without further documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description carries the burden: it explains that nodeId and source are mutually exclusive alternatives (exactly one), defines the sun/rain weather branch meaning, and states maxSteps defaults to 200 with a 2000 ceiling. That is meaningful guidance beyond the bare property names.

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 states a specific verb and resource: run the BPMN token simulator without writing. It makes the scope clear (simulate, not modify), which distinguishes it from patch_bpmn and parse_validate, and explains what the simulation actually does (tokens starting at the first start event, XOR/OR branching weather semantics).

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 specifies exactly-one input selection between nodeId and source and clarifies the no-write nature, but it never names an alternative sibling or says when to prefer this over parse_validate or patch_bpmn. The guidance is strong on how to pass inputs and weak on tool selection.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.