Skip to main content
Glama

Error summary

error_summary
Read-onlyIdempotent

Group errors from Graylog by exception, logger, source, or custom field, returning exact counts, first/last seen, and one sample message per group.

Instructions

Group errors (configured error query) by exception, logger, source or any field, with exact counts, first/last seen and a sample message per group.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of groups
queryNoExtra Lucene filter, ANDed with the error query
rangeNoRelative range ending now (or at to_time): '15m', '2h', '1d', '1h30m'1h
samplesNoAttach one sample message per group
streamsNoStream titles or ids to search in; all streams when omitted
to_timeNoAbsolute end, same formats as from_time; default now
group_byNo'exception', 'logger', 'source' (mapped via config) or any field nameexception
instanceNoGraylog instance (environment) from list_instances, e.g. 'staging' or 'prod'; the default instance when omitted
from_timeNoAbsolute start: ISO 8601 or 'YYYY-MM-DD HH:MM' in the instance timezone; overrides range

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so the safety profile is covered. The description adds that it uses a preconfigured error query and returns exact counts plus first/last seen and a sample per group, but says nothing about limits on result size, cost, or timeouts.

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 that front-loads the operation and immediately states the grouping dimensions and the returned metrics. Every clause carries information; slightly long parenthetical nesting keeps it from being maximally crisp.

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?

With 9 optional parameters, no output schema and read-only annotations, the description covers the purpose and the shape of results adequately, but omits routing guidance relative to the many sibling log-analysis tools. For a tool with this many knobs it is the minimum viable description.

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 every parameter including group_by, range, query and instance is already documented in the schema. The description only echoes the group_by options already listed there, so no meaning is added beyond the structured fields.

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 gives a specific verb (group) applied to a specific resource (errors) and enumerates the grouping dimensions and returned aggregates. An agent can tell it apart from most siblings, though it does not explicitly distinguish itself from the similarly grouping-oriented top_values.

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?

There is no explicit when-to-use guidance and no named alternative. It implies the tool always operates on a 'configured error query', which is useful context, but it never says when an agent should prefer this over count_logs, top_values or search_logs.

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