Skip to main content
Glama

Apply the real frequencies of the log

apply_log_frequencies
DestructiveIdempotent

Replay a loaded event log on a BPMN diagram to set gateway branch probabilities from observed frequencies and report pass counts, step waits/durations, and longest bottlenecks.

Instructions

Replays the loaded event log on the diagram, writes the observed share of each gateway branch as its probability (marked as coming from the log), and shows the real passes on the canvas. Returns passes per element and per flow, the branch shares, the median wait before and duration of each step, and the three longest waits (bottlenecks).

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

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 flag destructiveHint=true and readOnlyHint=false, and the description is consistent with that, adding real value by stating exactly what is mutated (gateway branch probabilities and the canvas) and that written values are marked as log-derived. It does not say what happens to previously set manual probabilities, which is the main gap for a destructive operation.

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 front-loaded sentence: the action and its diagram effects come first, then the returned metrics. It is dense but every clause carries information, particularly the return-value list, which compensates for the missing output schema.

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 output schema, the description usefully enumerates what comes back (passes per element/flow, branch shares, medians, three longest waits). With no parameters and annotations covering the safety profile, the only omission is the precondition that a log and diagram must already exist.

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 to document; the baseline applies. The description correctly spends its space on effects and outputs rather than inventing parameter detail.

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?

The description opens with a specific verb and resource ('Replays the loaded event log on the diagram') and names the concrete effects: gateway branch probabilities written, provenance marked, real passes shown. It is clearly distinct from siblings like map_log_activities or check_conformance, but it never explicitly contrasts itself with them.

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 only implied: 'the loaded event log' presupposes a log has already been loaded, but there is no explicit when-to-use, when-not-to-use, or named alternative (e.g., map_log_activities vs check_conformance). The agent must infer the prerequisite and ordering.

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