analyze_perf
View per-tool latency metrics including p50, p95, max response time, request count, and error rate. Data can be scoped to the current session or historical windows up to 7 days.
Instructions
Per-tool latency telemetry: p50/p95/max, count, error_rate. Default reads the current session ring; window=1h|24h|7d|all reads from ~/.trace-mcp/telemetry.db (requires telemetry.enabled in config). Sorted by p95 descending so the slowest tools surface first. Read-only. Returns JSON: { tools: [{ tool, p50, p95, max, count, errors, error_rate }], total_tools, source }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Cap on number of tools returned (default 20) | |
| tool | Yes | Filter to a single tool by name | |
| window | No | Time window. "session" (default) uses the in-memory ring. "1h"/"24h"/"7d"/"all" read from the persistent telemetry DB. |