Skip to main content
Glama
log-10x

Log10x MCP Server

Official
by log-10x

Retriever query status

log10x_retriever_query_status
Read-onlyIdempotent

Diagnose a retriever query by ID: pull coordinator stats, marker counts, result files, and logs to classify failures like dispatcher_failure or results_not_uploaded.

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 + submittedTasks>0 — typical signature of the chart 1.0.20 incomplete streamer→retriever rename), 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 real 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

TableJSON 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

TableJSON 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. 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 already declare readOnly/idempotent/openWorld, so the safety profile is covered; the description adds substantial context beyond that: the specific artifacts read, the diagnostic states it classifies (dispatcher_failure, results_not_uploaded, observability_disabled), and the kubectl dependency for pod-log tailing. These behavioral details are exactly what an agent needs and are not derivable from annotations or schema.

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 a single dense paragraph, but it is front-loaded with the core purpose and the when-to-use guidance before the implementation detail. Every sentence carries operative information (states, signatures, kubectl requirement), so the length is justified, though it reads as dense and could be split for scanability.

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?

An output schema exists, so return-value explanation is unnecessary, and annotations cover the safety profile. The description supplies everything else an agent needs: addressing, triggering conditions, the fetch_results escape hatch, and the pod-log requirement, leaving no material gap.

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; the description adds meaning beyond the schema by noting queryId can be 'recovered from the S3 results prefix' and that fetch_results recovers results 'after a partial or timed-out query... without resubmitting.' These extend the schema's own parameter docs rather than merely repeating them.

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?

States a specific verb+resource ('Post-hoc diagnostic surface for a specific retriever query') and immediately distinguishes it from the sibling by naming the addressing key queryId and its origin in log10x_retriever_query. The description of what it pulls (coordinator _DONE.json stats, per-worker markers, result JSONL, CloudWatch events, diagnostics classification) makes the purpose unmistakable.

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?

Gives explicit triggering conditions: 'Call this whenever log10x_retriever_query returns 0 events but the wall-clock implies real scan work, or whenever an offline post-mortem needs the structured timeline.' It also routes a distinct use case (recovering stranded results via fetch_results without resubmitting), covering when-to-use and the alternative path.

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