Skip to main content
Glama

abstract_dfg

Compute a directly-follows graph from an event log and render it as text, optionally including performance metrics.

Instructions

Directly-follows graph rendered as text.

Note: takes log_id, not dfg_id. pm4py computes the DFG internally for description. For the rendered PNG/SVG, use Phase 1's discover_dfgvisualize_dfg pair instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
log_idYes
max_lenNo
include_performanceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: it takes log_id, computes DFG internally, and returns text. A slightly higher score would require mention of side effects or output format, but it is adequate.

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?

The description is two sentences with no wasted words. Key information is front-loaded: the core function first, followed by critical notes on parameters and alternatives.

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

Completeness3/5

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

Given the presence of an output schema, return values need not be detailed. However, two of three parameters lack semantic description, and the description does not cover the tool's full scope (e.g., what 'text' format means). It is adequate but incomplete.

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

Parameters2/5

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

Schema coverage is 0%, so the description must compensate. It only explains log_id (and its distinction from dfg_id). The other two parameters (max_len, include_performance) are not described in the description, leaving them semantically undocumented.

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 clearly states the tool produces a text-based directly-follows graph, with explicit distinction from the visual PNG/SVG rendering via the discover_dfg/visualize_dfg pair. It specifies the unique input requirement (log_id not dfg_id).

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool (text output) versus the alternative visual pipeline (discover_dfg + visualize_dfg). It also clarifies that pm4py internally computes the DFG, so no prior discovery step is needed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/azizketata/pm4py-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server