Skip to main content
Glama
jperelli

Graylog MCP Server

by jperelli

search

Read individual matching log lines across one or more Graylog streams, newest-first. Returns concise high-signal fields by default; set verbose for all fields.

Instructions

Read individual matching log lines across one or more streams, merged newest-first. Returns a concise projection of high-signal fields by default (set verbose:true for all fields). Raw lines are expensive: if you want to know WHAT is failing rather than read specific lines, use analyze first — a hundred repetitions of one error cost a hundred times as much here as one aggregated count. Pass streams:"*" to cover every readable stream when you do not know which stream a service logs to (the Default Stream often excludes it).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoAbsolute window end, ISO-8601 UTC. Requires `from`.
fromNoAbsolute window start, ISO-8601 UTC (e.g. "2026-07-11 14:00:00"). Requires `to`. Overrides the relative range.
queryYesLucene query, e.g. "level:ERROR", "error OR exception", "source:api-*". Use "*" for everything.
fieldsNoComma-separated explicit field list to return. Overrides the concise projection.
streamsYesComma-separated Graylog stream IDs (from list_streams), or "*" for every stream the token can read. Required. Prefer "*" unless you already know the stream: the Default Stream ("000000000000000000000001") is NOT "everything" — most clusters route each service to its own stream that REMOVES its matches from the Default Stream, so searching only the Default Stream silently misses those services.
verboseNoReturn every populated field (untruncated) instead of the concise projection. Default: false.
instanceNoGraylog instance to query. Active: "instance_1". Default: "instance_1".
messageCharsNoMax characters of the raw message body per hit. Default: 500. The parsed fields (msg, name, err) usually carry the summary already, so raise this only when the detail you need lives in the raw body.
searchCountLimitNoMax messages to return. Default: 50.
searchTimeRangeInSecondsNoRelative time range in seconds, ending now. Default: 900 (15 min). Ignored if from/to are set.
Behavior4/5

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

With no annotations, the description carries the full behavioral burden. It discloses key traits: 'merged newest-first', concise projection vs verbose mode, the expensive nature of raw lines with cost implications, and important stream semantics (Default Stream often excludes services). While it does not mention pagination or rate limits, the cost warning and stream caveat add significant value beyond the schema.

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 dense but efficient. Every sentence adds value: purpose, projection behavior, cost warning, and stream guidance. It is front-loaded and not redundant, though the stream caution is somewhat lengthy. No wasted words, but it could be slightly more scannable. Still, it earns a 4.

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?

Given 10 parameters, no annotations, and no output schema, the description covers the critical context: when to use, how to avoid missing data, cost implications, and default behavior. It does not describe the exact return structure, but the concise-projection mention offers a hint. The absence of a return schema and the presence of sibling get_message mitigate this gap. Overall, a solid 4.

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 coverage is 100%, so the baseline is 3. The description adds strategic meaning for key params: verbose is tied to 'concise projection of high-signal fields', streams '*' is explained with the Default Stream caveat, and messageChars is contextualized as 'raw body vs parsed fields'. This goes beyond the schema's bare descriptions, justifying a 4.

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 opens with a specific verb+resource: 'Read individual matching log lines across one or more streams, merged newest-first.' It clearly distinguishes the tool from siblings by explicitly recommending 'analyze' for aggregation and implying this is for reading specific lines. The resource (log lines) and operation (search/read) are clear, and the newest-first merge adds behavioral scope.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use and when-not-to-use guidance: 'if you want to know WHAT is failing rather than read specific lines, use analyze first' and explains the cost trade-off. It also provides a concrete strategy for stream selection ('Pass streams:"*" to cover every readable stream') and warns about the Default Stream pitfall, directly aiding the agent in choosing this tool versus alternatives.

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

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