Skip to main content
Glama
lcaliani

graylog-mcp

by lcaliani

fetch_graylog_messages

Retrieve log messages from Graylog instances by specifying search queries, time ranges, and field filters.

Instructions

Fetch messages from a Graylog instance.

Active instances: "instance_1". Default instance: "instance_1".

Use the "instance" parameter to target a specific Graylog server. Each instance is identified by its label (set via GRAYLOG_LABEL_INSTANCE_N env var). If no label is configured, instances are identified as "instance_1", "instance_2", etc.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceNoWhich Graylog instance to query. Active: "instance_1". Default: "instance_1".
queryYesThe search query, using Graylog query syntax (e.g. "level:ERROR AND service:api").
searchTimeRangeInSecondsNoRelative time range in seconds. Default: 900 (15 minutes).
searchCountLimitNoMax number of messages to return. Default: 50.
fieldsNoComma-separated list of fields to return. Default: '*' (all fields).
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 disclosing behavioral traits. It only states 'fetch messages' without mentioning side effects, permissions, rate limits, error handling, or response format. This is insufficient for a tool with no annotation backup.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is relatively short but contains repetition about instances (e.g., 'Active instances: instance_1' and 'Default instance: instance_1'). It could be more terse without losing clarity.

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?

The tool has 5 parameters with full schema coverage, but no output schema or sibling tools. The description covers instance selection and parameter defaults, but lacks information on return format, pagination, or how to handle large result sets.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

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

Schema description coverage is 100%, but the description adds value beyond the schema by explaining instance label configuration, providing a query syntax example, and stating defaults for time range, count limit, and fields. This helps agents use parameters correctly.

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 verb 'fetch' and the resource 'messages from a Graylog instance'. It specifies the active and default instance, leaving no ambiguity about the tool's purpose.

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?

The description explains how to target a specific instance using the 'instance' parameter and how instances are identified. It provides clear context for instance selection, though it does not include explicit exclusions or when not to use the tool.

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

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