API & MCP

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

HTTP API

  • POST https://toolcalltraceexplorer.usefulweb.site/api/v1/calculate – run AI Tool-Call Trace Explorer
  • GET https://toolcalltraceexplorer.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.

AI Tool-Call Trace Explorer

Reads an AI agent transcript – OpenAI chat messages with tool_calls, OpenAI Responses function_call items, Anthropic messages with tool_use/tool_result blocks, or generic JSONL events – and rebuilds the ordered timeline of tool calls with (truncated) inputs and outputs, errors, durations, repeated identical calls (retries and loops), per-tool statistics and the slowest calls. Only execution events are analysed; hidden reasoning is never reconstructed.

Inputs of AI Tool-Call Trace Explorer
FieldTypeDefaultDescription
trace (required)textarea—Transcript or trace. JSON array / {messages:[…]} of chat messages, Responses API items, or JSON Lines events {ts, type, name, input, output, error, duration_ms}.
formatselect (auto, openai, anthropic, events)"auto"Format
maxCharsinteger200Truncate inputs/outputs to
loopThresholdinteger3Identical calls that count as a loop

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://toolcalltraceexplorer.usefulweb.site/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: tool_call_trace_explorer
  • Local stdio connector: node src/mcp-stdio.ts --tool=tool-call-trace-explorer
{
  "mcpServers": {
    "tool-call-trace-explorer": { "type": "http", "url": "https://toolcalltraceexplorer.usefulweb.site/mcp" }
  }
}