Skip to main content
Glama

load_ocel

Load an OCEL 2.0 file from disk by path, inferring format from extension, and return a handle with a compact summary for further analysis.

Instructions

Read an OCEL 2.0 file from disk and store it under a fresh ocel_id handle.

Format is inferred from the file extension:

  • .jsonocel / .json — JSON-OCEL (the most common format)

  • .xmlocel / .xml — XML-OCEL

  • .sqlite — SQLite-OCEL

Returns a dict with ocel_id plus a compact summary (object types + per-type event counts, activities preview, time range). Never returns the OCEL itself; subsequent tools retrieve it by handle.

Use flatten_ocel to project the OCEL onto a single object type and obtain a traditional log_id that composes with every Phase 1 tool.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description carries full burden. It discloses that the tool stores data under a fresh handle, infers format from extension, never returns the OCEL directly, and returns a summary dict. This is comprehensive and lacks contradictions.

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?

The description is two paragraphs, front-loading the main action and format inference, then providing return details and sibling guidance. It is efficient with no unnecessary words, though it could be slightly more concise by merging the format list into the first sentence.

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?

Given the simplicity of the tool (single parameter, clear output schema presence), the description covers the essential aspects: input, behavior, output summary, and subsequent usage. It is complete enough for an AI agent to understand usage, though it could mention the output schema explicitly.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It explains the path parameter implicitly by mentioning file extensions and reading from disk, but it does not explicitly state that 'path' is a required string for the local file path. More explicit parameter documentation would improve clarity.

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 'Read an OCEL 2.0 file from disk and store it under a fresh ocel_id handle.' It specifies the resource (OCEL 2.0 file) and the action (read and store). The mention of format inference and the return dict further clarify its purpose.

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?

The description provides guidance on when to use this tool vs. flatten_ocel, saying 'Use flatten_ocel to project the OCEL onto a single object type and obtain a traditional log_id.' It also explains that this tool does not return the OCEL itself, setting expectations. However, it does not explicitly contrast with load_event_log or other load tools, so there is room for improvement.

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