Skip to main content
Glama
jagadeesh52423

Graylog MCP Server

cluster_log_messages

Clusters similar log messages into structural templates, revealing recurring patterns and reducing log noise.

Instructions

Cluster similar log messages into Drain3-style templates. Fetches messages with the same args as fetch_graylog_messages, then groups them by structural similarity. Templates are persisted per connection and reused across calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoAbsolute end time (ISO)
fromNoAbsolute start time (ISO)
fieldNoField to cluster on. Default 'message'.
queryNoQuery string (same as fetch_graylog_messages)
filtersNoField filters
readOnlyNoIf true, do not update template library. Default false.
algorithmNoClustering algorithm. Default 'drain3'.
streamIdsNoOptional stream IDs
timeRangeNoTime range (e.g. '1h', '30m')
exactMatchNoWrap query in quotes (default true)
sampleSizeNoMax messages to fetch & cluster. Default 1000, max 10000.
maxChildrenNoMax templates per length bucket (LRU evict beyond this). Default 100.
includeSamplesNoSample messages per cluster (first/middle/last by time). Default 3.
minClusterSizeNoSingletons collapsed under '_misc' cluster. Default 2.
similarityThresholdNoDrain3 similarity threshold 0-1. Default 0.6. Lower = more aggressive merging.
Behavior4/5

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

With no annotations, the description carries the burden of disclosing side effects. It states 'Templates are persisted per connection and reused across calls,' revealing statefulness. It does not mention performance cost or partial updates, but the core side-effect is disclosed.

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 two sentences, front-loaded with the purpose, and follows up with a useful behavior note. No unnecessary words or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex tool with 15 parameters and no output schema. The description omits the return format, performance implications, and relationship to sibling template-management tools (e.g., list_log_templates, delete_log_template). It only mentions persistence and reuse, which is insufficient 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.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description references fetch_graylog_messages to explain shared query parameters but adds no unique syntax or behavior beyond what the schema already provides. No compensation is needed.

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 uses a specific verb 'Cluster' with a clear resource ('log messages') and specifies the output ('Drain3-style templates'). It also distinguishes itself from sibling fetch_graylog_messages by stating it fetches using the same args but groups them by structural similarity.

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

Usage Guidelines4/5

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

It explicitly references fetch_graylog_messages for the same query arguments, implying this tool is for clustering instead of raw retrieval. It also notes that templates are persisted and reused across calls, indicating when consistency matters. No explicit exclusions are given, but the context is sufficient for most decisions.

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/jagadeesh52423/graylog-mcp'

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