Skip to main content
Glama
vola-trebla

ndjson-local-log-triage-mcp

by vola-trebla

correlate_request

Reconstruct distributed traces by gathering all log events matching a trace/request ID from multiple NDJSON files, sorted chronologically.

Instructions

Reconstruct a distributed trace by collecting all log events matching a trace/request ID across multiple NDJSON files, sorted chronologically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idFieldNoField name containing the trace/request IDtrace_id
traceIdYesTrace/request ID value to search for
logFilesYesArray of absolute paths to NDJSON log files
serviceFieldNoField name for service/component nameservice
timestampFieldNoField name for ISO timestamptimestamp
lineStartPatternNoRegex that marks new log line start — enables multiline stack trace buffering
Behavior3/5

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

With no annotations provided, the description carries the full burden of transparency. It accurately describes the core behavior (collecting events, chronological sorting) but does not disclose output format, error handling, or confirm the operation is read-only. This is a moderate disclosure level.

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?

The description is a single, front-loaded sentence with no filler. Every phrase adds value: the verb, the resource, the mechanism, and the sorting order.

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?

The description is reasonably complete for a moderately complex tool: it explains the main action and outcome. However, since there is no output schema, it does not explicitly state the return structure, and it omits details about edge cases (e.g., no matches found). Still, the core purpose is fully covered.

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?

The input schema has 100% description coverage, so the baseline is 3. The description adds minimal parameter semantics beyond the schema—it only reinforces that multiple files and a trace ID are involved. It does not elaborate on optional parameters like idField or lineStartPattern, which the schema already covers.

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 ('Reconstruct') and resource ('distributed trace'), and clearly distinguishes itself from siblings by focusing on collecting log events across multiple NDJSON files. It explains the method (matching trace/request ID, sorted chronologically) and is not a tautology.

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 description implies a clear context: use this tool when you need to reconstruct a distributed trace from multiple NDJSON files. However, it does not explicitly state when not to use it or mention alternative sibling tools, so it lacks exclusion guidance.

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/vola-trebla/ndjson-local-log-triage-mcp'

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