Skip to main content
Glama
jagadeesh52423

Graylog MCP Server

list_field_values

Get distinct values for a log field with message counts, sorted by frequency, to identify sources, environments, or logger names.

Instructions

List distinct values of a field with message counts. Useful for discovering available sources, environments, logger names, etc. Results are sorted by count descending.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoEnd time for absolute range (ISO string or timestamp)
fromNoStart time for absolute range (ISO string or timestamp)
fieldYesThe field to get distinct values for (e.g. 'source', 'env', 'logger_name', 'level')
limitNoMaximum number of distinct values to return. Default: 20
queryNoQuery to scope the results (e.g. search within specific messages)
filtersNoField filters to narrow scope (e.g. {"env": "marketplace_loki"})
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. Set to false for fuzzy/wildcard search.
timeRangeInSecondsNo[DEPRECATED] Use timeRange instead. Time range in seconds. Default: 3600 (1 hour)
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses sorting by count descending and that results include message counts, but doesn't go deeper into time-range behavior, query scoping, or default limits beyond what the schema explains. This is minimal but non-tautological.

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?

Two sentences, front-loaded with the main action, and no redundant wording. Every sentence contributes: the first states what it does, the second explains when to use it and the result ordering.

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 rich schema descriptions for all 10 parameters and no output schema, the description adequately covers the tool's core purpose and use case. It doesn't reiterate optional scoping features (timeRange, query, filters), but these are well-documented in the schema, and the description provides the necessary context for an agent to decide to invoke the tool.

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 no parameter-specific meaning beyond the schema, which already documents fields like 'field', 'limit', and time range. It reinforces the purpose but does not compensate for any gap.

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 ('List') and resource ('distinct values of a field with message counts'), which clearly distinguishes it from siblings like list_streams or search_events. It also names concrete example fields, reinforcing the tool's scope.

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 phrase 'Useful for discovering available sources, environments, logger names, etc.' gives explicit context for when to use this tool. It lacks mention of alternatives or exclusions, but the stated use cases effectively guide selection.

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