Skip to main content
Glama

trace_request

Follow a request, correlation, trace, or user ID across multiple log files to return every matching event in time order, with source file, time span, and error count.

Instructions

Follow one request / correlation / trace / user id across ALL matching files (use a directory or glob to span services). Returns every event mentioning the id, merged into time order, with the file each came from, the time span and how many were errors. Stack traces stay attached to their event.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>",
      "request_id": "<request_id>"
    },
    "name": "trace_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNo+00:00
pathYes
sinceNo
untilNo
max_eventsNo
request_idYes
ignore_caseNo
include_rotatedNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
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 and does a good job: it discloses that results are merged into a global time order, annotated with source file, time span, and error counts, and that stack traces remain attached to their events. What it omits is operational behavior such as cost when scanning many files, truncation by max_events, or how rotated files affect results.

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?

Three tightly packed sentences open with the core action and scope before moving to return shape. No filler, though the sentence density makes it slightly harder to scan than a short bulleted statement would.

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 return shape is covered (and an output schema exists anyway), and the core intent is clear, but for an 8-parameter tool with zero schema coverage and no annotations, the definition leaves too much of the calling surface unexplained to be considered complete.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters, so the description must compensate and largely does not. It clarifies path (directory or glob) and request_id (the id being followed), but says nothing about tz, since, until, max_events, ignore_case, or include_rotated, leaving six parameters with no semantics anywhere.

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?

The description gives a concrete verb ('Follow') and a concrete resource ('one request / correlation / trace / user id across ALL matching files'), so an agent knows exactly what the tool produces. It also implicitly separates itself from narrow single-file searches via 'across ALL matching files' and 'merged into time order', though no sibling is named explicitly.

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?

The parenthetical '(use a directory or glob to span services)' gives useful guidance on how to scope the path for a cross-service trace. However, there is no statement of when to prefer this over search_logs, timeline, or compare_windows, and no exclusions or prerequisites.

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