Skip to main content
Glama

get_case_durations

Compute summary statistics for case durations from an event log, including count, min, max, mean, median, and key percentiles (50/75/90/95/99).

Instructions

Return summary statistics for per-case durations (seconds).

Returns count, min, max, mean, median, and the 50/75/90/95/99 percentiles. The full per-case list is NOT returned — it can be 100k+ floats on a real log and blow the response cap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
log_idYes

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 provided, the description carries the full burden. It clearly states that the full per-case list is NOT returned and explains why (potential large size). It also lists all returned statistics, providing good behavioral context beyond the schema.

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 extremely concise, consisting of two sentences. The first sentence clearly states the purpose, and the second adds critical behavioral information. No filler, every sentence earns its place.

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?

The description adequately covers the tool's purpose, return values (with specifics), and an important behavioral constraint (not returning full list). It has an output schema, so return format is covered. For a simple statistics tool, this is complete.

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?

The input schema has only one parameter (log_id) with no description, and schema coverage is 0%. The description does not elaborate on what log_id represents or any constraints. With low coverage, the description should compensate, but it does not, leaving the parameter's meaning to inference.

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 clearly states that the tool returns summary statistics for per-case durations, listing specific metrics like count, min, max, mean, median, and percentiles. It uses a specific verb 'return' and resource 'summary statistics'. It does not explicitly differentiate from sibling tools, but the purpose is unambiguous.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives, such as tools that return full per-case lists or other summary statistics. The context implies it's for aggregate analysis, but no exclusions or sibling comparisons are provided.

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