Skip to main content
Glama
jagadeesh52423

Graylog MCP Server

get_field_aggregation

Aggregate Graylog log messages by field values to compute counts, sums, averages, min, and max. Use filters, queries, and time ranges for targeted analysis.

Instructions

Aggregate log messages by field values with statistics. Get counts, sums, averages, etc. for field values.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoEnd time for absolute range (ISO string or timestamp)
fromNoStart time for absolute range (ISO string or timestamp)
fieldYesField to aggregate on (e.g., 'source', 'env', 'logger_name', 'level')
limitNoMaximum number of field values to return. Default: 20
queryNoQuery to filter messages
filtersNoField filters (e.g. {"env": "production"})
metricsNoMetrics to calculate. Default: ['count']
streamIdsNoOptional stream IDs to scope the search. Use 'list_streams' to get available stream IDs.
timeRangeNoTime range (e.g., '1h', '2d', '30m') or use from/to for absolute range
exactMatchNoIf true (default), wraps the query in quotes for exact match.
valueFieldNoNumeric field for sum/avg/min/max calculations (required for non-count metrics)
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only mentions that counts, sums, averages, etc. are returned, but omits critical behaviors like default metrics (count), the need for valueField with non-count metrics, default limit of 20, time range handling, and exact match behavior. This is insufficient for a complex aggregation tool.

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?

The description is brief and front-loaded with the core action. It is two sentences with no fluff, though the phrase 'etc.' is vague and the second sentence somewhat restates the first. Still, it is efficiently sized for the clarity it provides.

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?

The tool has 11 parameters, nested objects, no output schema, and no annotations, making it high complexity. The description does not explain return structure, required valueField for non-count metrics, default limit, or relationships among parameters. It is too minimal to fully prepare an agent for correct usage.

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 the baseline is 3. The description adds examples of aggregate types (counts, sums, averages) that correspond to the metrics parameter, but does not explain relationships between parameters (e.g., valueField required for sum/avg/min/max) or defaults beyond what the schema already states. It adds marginal value over the schema.

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 clearly states the tool aggregates log messages by field values with statistics like counts, sums, and averages. It identifies the action (aggregate) and resource (log messages/field values), but does not explicitly differentiate from sibling tools like get_field_time_aggregation or list_field_values, so it misses the sibling differentiation point.

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?

No guidance is given on when to use this tool versus alternatives, such as get_field_time_aggregation for time-based aggregation or list_field_values for simple value listing. The description implies a use case but provides no explicit context or exclusions.

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