Skip to main content
Glama
log-10x

Log10x MCP Server

Official

Retriever query status

log10x_retriever_query_status
Read-onlyIdempotent

Diagnose a retriever query by queryId: pull coordinator stats, count worker markers, list results, classify failures like dispatcher_failure; recover stranded S3 results without resubmitting.

Instructions

Post-hoc diagnostic surface for a specific retriever query, addressed by queryId (returned from log10x_retriever_query or recovered from the S3 results prefix). Pulls the coordinator's _DONE.json stats (scanned / matched / streamRequests / streamBlobs / submittedTasks / expectedMarkers), counts per-worker byte-count markers under q/<queryId>/, lists result JSONL files under qr/<queryId>/, optionally filters CloudWatch events from the queryLogGroup for the queryId substring (when the chart's queryLogGroup is configured), and runs a diagnostics engine that classifies the run into states like dispatcher_failure (scanned=0 with submittedTasks>0), results_not_uploaded, or observability_disabled. When pod logs are reachable from the MCP host, fetches a tail and greps for the cloud/streamer/subquery include-resolution signature to confirm the dispatcher-failure category. Call this whenever log10x_retriever_query returns 0 events but the wall-clock implies scan work, or whenever an offline post-mortem needs the structured timeline for a specific queryId. Pass fetch_results: true to ALSO recover the completed results from S3 (10-event preview + counts + results_location) after a partial or timed-out query, without resubmitting.

Input Schema

NameRequiredDescriptionDefault
targetNoTarget app/service prefix used when the original query was submitted. Defaults to "app". Must match the target that was passed to the original query.app
query_idYesUUID of a previously-submitted retriever query. Returned as data.query_id from log10x_retriever_query.
fetch_resultsNoWhen true and the query has completed, ALSO recover the results from S3: a 10-event preview, counts, and the results_location pointer, same core fields as a completed log10x_retriever_query. Use after a partial/timed-out query to recover stranded events without resubmitting.
include_pod_logsNoWhen true and a dispatcher_failure is suspected (scanned=0 + submittedTasks>0), attempt kubectl logs on the retriever pod to confirm the chart 1.0.20 include-resolution error. Requires kubectl access from the MCP process. Set false to skip the kubectl call.

Output Schema

NameRequiredDescriptionDefault
dataNo
toolYes
viewNosummary
imagesNo
actionsNo
summaryYes
warningsNo
truncatedNo
next_cursorNo
render_hintNo
generated_atYes
schema_epochYes
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.30.8
    • changedInput schema / properties / fetch_results / description
      Previous value: -"When true and the query has completed, ALSO recover the results from S3: a 10-event preview, counts, and the results_location pointer — same core fields as a completed log10x_retriever_query. Use after a partial/timed-out query to recover stranded events without resubmitting."New value: +"When true and the query has completed, ALSO recover the results from S3: a 10-event preview, counts, and the results_location pointer, same core fields as a completed log10x_retriever_query. Use after a partial/timed-out query to recover stranded events without resubmitting."
  2. First observedv1.30.7

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover read-only/idempotent/open-world, but the description adds substantial behavioral context beyond them: the diagnostic state taxonomy (`dispatcher_failure`, `results_not_uploaded`, `observability_disabled`), the classification heuristic (scanned=0 with submittedTasks>0), the kubectl dependency and its host-reachability caveat, and the CloudWatch filter gated on a configured `queryLogGroup`. It also discloses the side effect of `fetch_results` pulling data from S3.

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?

It is one very long paragraph, which is dense but unstructured, and reads as a wall of text. It is front-loaded well with the core purpose, and nearly every clause carries operational information, so the length is largely earned rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a post-hoc diagnostic tool with an output schema covering return values, the description supplies everything an agent needs: when to call it, how to obtain the required id, the diagnostic categories it produces, and the optional kubectl/S3 dependencies. No meaningful gap remains.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning beyond it: how `query_id` is obtained (returned from `log10x_retriever_query` or recovered from the S3 results prefix), what `fetch_results` actually returns (10-event preview, counts, results_location), and that `include_pod_logs` triggers a kubectl call requiring host access.

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?

"Post-hoc diagnostic surface for a specific retriever query, addressed by queryId" gives a precise verb, resource, and addressing key, and the enumeration of what it pulls (coordinator `_DONE.json` stats, byte-count markers, result JSONL, CloudWatch events, diagnostics engine) makes the scope unmistakable. It is clearly differentiated from the submit-side sibling `log10x_retriever_query` and from `log10x_retriever_probe`/`log10x_retriever_series`.

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

Usage Guidelines5/5

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

Explicit trigger conditions are given: "Call this whenever `log10x_retriever_query` returns 0 events but the wall-clock implies scan work, or whenever an offline post-mortem needs the structured timeline for a specific queryId." It also states when to flip `fetch_results: true` (recover stranded results after a partial/timed-out query without resubmitting) and when `include_pod_logs` applies.

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