API & MCP

Everything a person can do on Distributed Trace Explorer, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://distributedtraceexplorer.usefulweb.site/api/v1/calculate – run Distributed Trace Explorer
  • GET https://distributedtraceexplorer.usefulweb.site/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Distributed Trace Explorer

Paste a trace exported as OTLP JSON (resourceSpans), Jaeger JSON (data[].spans) or Zipkin v2 JSON. The explorer rebuilds the span tree, computes self-time (excluding overlapping child spans), the critical path that determines end-to-end latency, the slowest services, error spans, and detects N+1 queries and fan-out (many sibling spans with the same name), with a service call graph and a waterfall.

Inputs of Distributed Trace Explorer
FieldTypeDefaultDescription
texttextarea—Trace JSON. OTLP/JSON export (e.g. from the OpenTelemetry Collector file exporter), Jaeger UI "Download JSON" / API /api/traces/{id}, or a Zipkin v2 span array.
filefile—Or upload the file. Read in memory as UTF-8 text and not stored. Max 5 MiB.
traceIdtext—Trace id (optional). If the payload contains several traces; default is the trace with the most spans.
repeatThresholdinteger5Flag repeated sibling spans from. Minimum number of same-named sibling spans to report as N+1 / fan-out.

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://distributedtraceexplorer.usefulweb.site/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: distributed_trace_explorer
  • Local stdio connector: node src/mcp-stdio.ts --tool=distributed-trace-explorer
{
  "mcpServers": {
    "distributed-trace-explorer": { "type": "http", "url": "https://distributedtraceexplorer.usefulweb.site/mcp" }
  }
}