Skip to main content
Glama

compare_logs

Compare multiple log files to identify entries unique to each file. Normalizes variable parts to highlight meaningful differences and shared patterns.

Instructions

Compare multiple log files and find entries unique to each file.

Normalises variable parts (numbers, UUIDs, hex) so that messages differing only in IDs or timestamps are treated as the same pattern. Returns patterns that appear in some files but not in others, helping you focus on what is different rather than what is common. Also shows shared patterns and frequency outliers where the same pattern appears with very different counts across files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathsYes
max_unique_per_fileNo
max_shared_patternsNo
frequency_ratio_thresholdNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries full burden. It clearly discloses key behaviors: normalization of variable parts, comparison logic, and the types of results (unique, shared, frequency outliers). However, it does not mention potential side effects (none expected), file format assumptions, or performance considerations, which would improve transparency.

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 concise, with four sentences that are front-loaded with the main purpose. Every sentence adds value: purpose, normalization, outputs, and additional features. No unnecessary words or redundancy.

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 no annotations and an output schema (implied), the description covers the main functionality but lacks context about parameters and prerequisites. It does not mention that file paths must be valid or the meaning of thresholds. While the output schema likely explains return values, the description leaves gaps for parameter understanding.

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 description coverage is 0%, so the description must add meaning to parameters. However, it does not explain any of the four parameters (file_paths, max_unique_per_file, max_shared_patterns, frequency_ratio_threshold). The description focuses on behavior, leaving parameter semantics to be inferred from names and defaults. This is insufficient.

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's purpose: comparing multiple log files and finding entries unique to each file. It explains normalization of variable parts and the types of output (unique patterns, shared patterns, frequency outliers). This distinguishes it from sibling tools like analyze_errors or search_logs, which focus on different aspects.

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?

The description implies when to use this tool (when you want to focus on differences across log files), but it does not explicitly state when not to use it or suggest alternatives. For example, it doesn't mention that for simple searching, search_logs might be better. The guidance is implicit rather than explicit.

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

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