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 ExplorerGET https://toolcalltraceexplorer.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
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}. |
format | select (auto, openai, anthropic, events) | "auto" | Format |
maxChars | integer | 200 | Truncate inputs/outputs to |
loopThreshold | integer | 3 | Identical 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" }
}
}