Skip to main content
Glama

Trace request

trace_request
Read-onlyIdempotent

Follow a request across services by searching trace fields on all streams, returning a chronological timeline, per-service durations, and the first error.

Instructions

Follow one request across services: searches the configured trace fields (falls back to full text) on all streams and returns a chronological timeline, per-service steps with durations, and the first error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax messages in the timeline
rangeNoRelative range ending now (or at to_time): '15m', '2h', '1d', '1h30m'24h
streamsNoStream titles or ids to search in; all streams when omitted
to_timeNoAbsolute end, same formats as from_time; default now
instanceNoGraylog instance (environment) from list_instances, e.g. 'staging' or 'prod'; the default instance when omitted
trace_idYesCorrelation / request / trace id to follow
from_timeNoAbsolute start: ISO 8601 or 'YYYY-MM-DD HH:MM' in the instance timezone; overrides range

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish the safe/idempotent/read-only profile, and the description adds real behavioral context beyond that: the trace-field search with full-text fallback, and the shape of the result (chronological timeline, per-service steps with durations, first error). With no output schema present, disclosing the return structure is especially valuable.

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 front-loaded sentence with a colon-delimited enumeration of the returned artifacts. Dense but every clause carries information; minor cost is that the enumeration makes it feel packed.

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?

For a 7-parameter, single-required-param tool with no output schema, the description covers core behavior and the return shape well. Gaps are modest: no pagination/truncation note, no statement on what happens when the trace id matches nothing, and no instance/time-range interaction guidance.

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 all 7 parameters are self-documented with defaults and formats. The description adds no parameter-level meaning (e.g. how limit interacts with the timeline, or that streams are optional), so baseline 3 applies.

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?

States a specific verb and resource: follows one request across services using trace fields, and specifies scope (all streams). It's clearly a trace-correlation tool rather than a generic log search, though it never names a sibling like search_logs or context_around to sharpen the contrast.

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

Usage Guidelines3/5

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

Usage is implied: you need a correlation/trace id and want a cross-service timeline. There is no explicit when-to-use vs when-not guidance, no mention of alternatives (e.g. search_logs for free-text exploration), and no prerequisites or instance-selection advice.

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