Skip to main content
Glama

Check the log against the diagram

check_conformance
Read-only

Replay event-log cases on a BPMN diagram to calculate conformance fitness and show deviations like skipped, out-of-order, or missing steps.

Instructions

Replays each case of the loaded event log on the diagram (token replay) and returns the share of cases that follow it, the fitness (0 to 1), and the deviations with their number of cases: skipped step, step done before another, step without the expected step before, case stopped before an end, step not in the diagram. Shows them on the canvas. Read-only for the diagram.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.6

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false; the description adds context beyond that by clarifying the read-only claim is scoped 'for the diagram' and by disclosing the UI side effect 'Shows them on the canvas.' It also names the deviation categories returned, which is behavioral detail the annotations do not carry. It stops short of noting performance cost on large logs or whether prior results are overwritten on the canvas.

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?

Two sentences, front-loaded with the core action and result set, with the deviation list compressed into a single clause. The middle enumeration runs long and could be a bulleted return summary, but no sentence is 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?

With no parameters and no output schema, the description carries the burden of describing returns, and it does so concretely: share of cases, fitness range, and deviation types with counts. The only real gap is the unstated precondition that an event log and a diagram must be loaded first, which an agent must infer from 'loaded event log.'

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 nothing for the description to disambiguate; the baseline applies. The description instead spends its words on inputs the agent implicitly relies on (the loaded log and the current diagram), which is the right use of space.

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: replays every case of the loaded event log on the diagram via token replay, and enumerates the results returned (share of conforming cases, fitness 0-1, deviations by case count). An agent can tell this is a conformance check rather than a diagram editor. It does not explicitly distinguish itself from the sibling validate_diagram, which is the one adjacent capability an agent might confuse it with.

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 rather than stated: 'the loaded event log' and 'the diagram' signal the precondition that both must already exist. There is no explicit when-to-use, when-not-to-use, or pointer to an alternative such as validate_diagram for structural checks, so the agent must infer the routing.

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