Skip to main content
Glama

Diff logs between two executions

execution_compare

Compare two execution logs to identify divergences, grouping by source, level, and message to ignore variable payloads. For flaky-test debugging, compare a failing run against a passing one to isolate exactly what changed.

Instructions

Diffs two executions' logs, grouped by normalized (source, level, message) so it tolerates differing data payloads (timestamps, ids). Returns log lines only present in A, only present in B, and lines common to both with their counts. This is the tool for flaky-test-style debugging: run the same thing repeatedly with execution_run, then compare a failing run against a passing one to isolate exactly what diverged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
executionIdAYes
executionIdBYes
Behavior5/5

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

No annotations are provided, so the description carries full behavioral burden. It discloses the normalization tolerance, the three output categories, and the counts, giving a clear picture of what the tool does beyond the raw 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?

Three sentences, front-loaded with the core action, followed by output details and use case. No wasted words; every sentence provides value.

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?

Despite having no output schema and no annotations, the description fully explains what is returned, the normalization logic, and the intended use case. It is complete for a tool of this complexity.

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?

Schema coverage is 0%, but the parameter names executionIdA and executionIdB are self-explanatory. The description consistently uses A and B to refer to the two executions, clarifying their roles in the diff. It does not add format/type details, but the naming plus context is sufficient.

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 diffs two executions' logs, specifies the grouping method (normalized source, level, message), and describes the return categories. This is a specific verb+resource that distinguishes it from siblings like execution_get_logs.

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?

Explicitly frames this as the flaky-test-style debugging tool, instructing to run the same thing with execution_run and compare a failing run against a passing one. This tells the agent when to use it and gives a concrete workflow.

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/asynchroza/log-probe-mcp'

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