diagnose_requests
Diagnose why API responses look wrong or slow. Get breakdowns by source, status, content type, and latency, plus concrete findings like silent upstream failures, wrong mount prefixes, and mismatched content types.
Instructions
Explain what is going wrong with the traffic the local server has served, and where each response's data came from. Returns a breakdown by source (generated / upstream / replay / cache), by status and by content type, latency p50/p95/max, and a list of concrete findings: upstream failures that silently fell back to a generated mock, 404s from a wrong mount prefix, a body that is JSON under a non-JSON content type, and unusually slow requests. Prefer this over request_history when the user asks why a response looks wrong, whether data is real or mocked, or why something is slow. Note that a replayed or cached response never reaches the history log, so a call the user made and cannot find here was most likely served from a recording or the cache rather than not happening. Read-only, localhost only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many of the newest requests to examine. | |
| service | No | Limit to one service. Omit to look at every service. |