Skip to main content
Glama
Log Intelligence MCP Server

Log Intelligence MCP Server

by eamonboyle

Summarise errors

summarise_errors
Read-onlyIdempotent

Cluster error and fatal log entries by normalized message to surface top failure patterns with counts, time spans, sources, and sample messages for faster triage.

Instructions

Cluster error- and fatal-level entries by normalised message and list the top patterns with counts, time spans, sources and sample messages.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "summarise_errors"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNNoNumber of top clusters to return (default 10)
sourceNoOnly include entries whose source name contains this text
endDateNoEnd of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z)
minCountNoMinimum occurrences to include (default 1)
startDateNoStart of time range (ISO 8601, e.g. 2026-02-10T08:00:00Z)

Output Schema

NameRequiredDescriptionDefault
clustersYes
truncatedYesPatterns beyond topN that were not returned
totalErrorsYes
uniquePatternsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety is covered. The description does add genuine behavioural scope not present in the schema: only error- and fatal-level entries are considered and messages are normalised before clustering. It stops short of explaining what normalisation entails or how clustering is ordered beyond topN.

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?

A single dense sentence with no filler, front-loaded on the action and followed by the returned fields. Slightly list-like in the output enumeration, but nothing is wasted.

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?

With five fully documented optional parameters and an output schema, the description only needs to carry purpose, scope and grouping logic, all of which it delivers. The missing when-to-use routing against siblings is the main residual gap.

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 100%, so topN, minCount, source and the date bounds are already fully documented in the schema. The description adds no syntax, default or interaction detail beyond that, so baseline 3 applies.

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?

Specific verb (cluster/summarise) plus resource (error- and fatal-level entries), and it names the grouping key (normalised message). It implies differentiation from siblings like group_by_property and get_error_timeline without naming them explicitly.

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?

Usage is only implied by the purpose: an agent can infer this is for high-level error triage rather than raw browsing, but the description never states when to prefer it over detect_new_error_pattern or group_by_property, nor any exclusions.

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