Skip to main content
Glama

Context around

context_around
Read-onlyIdempotent

Retrieve log messages within ±N seconds of a given message to inspect surrounding events and troubleshoot issues.

Instructions

Messages logged within ±N seconds of a given message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refYes'index/message_id' of the anchor message
limitNoMax messages (split before/after)
queryNoExtra Lucene filter inside the window
scopeNo'source' (same host/app, default), 'stream' (same streams) or 'all'source
secondsNoWindow before and after the message
instanceNoGraylog instance (environment) from list_instances, e.g. 'staging' or 'prod'; the default instance when omitted

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered structurally. The description adds nothing beyond that: no note on how the window is measured, what happens at log boundaries, result ordering, or the effect of the scope/query narrowing. For an open-world tool it under-discloses.

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?

A single tight sentence with zero filler and the core scoping concept ('±N seconds') front-loaded. Its brevity is arguably under-specification rather than good economy, but there is no wasted text to trim.

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?

With six parameters, no output schema and an open-world read tool, the description leaves the agent without any guidance on how scope/query/instance interact or how to narrow the window sensibly. The schema covers individual params, but the description contributes no operational context for a moderately complex retrieval 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 scope, query, limit, instance and seconds are already documented in the schema, and the baseline is 3. The description's '±N seconds' does add the useful symmetry detail (seconds applies both before and after the anchor), but nothing else is elaborated beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The fragment 'Messages logged within ±N seconds of a given message' does convey a specific resource and a temporal-scope operation, so an agent can infer it fetches messages near an anchor. However, it is a bare noun phrase with no verb and no differentiation from siblings like get_message or search_logs, which also retrieve messages. Purpose is identifiable but not sharp.

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?

There is no when-to-use guidance at all — nothing says this is for pulling surrounding traffic around a known message versus using get_message for one message or search_logs for a query. The '±N seconds' framing only weakly implies a 'when you need surrounding context' scenario. No alternatives or exclusions are named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.