Per-tool error rate + P50/P95 latency (MTP-05)
GET /api/v1/mcp-tools/metrics
GET
/api/v1/mcp-tools/metrics
Return per-tool rollup for the last window_hours hours.
Tools with error_rate > 0.05 are flagged with alert=True
so the frontend can apply red-badge styling without recomputing
the threshold.
Authorizations
Parameters
Query Parameters
window_hours
integer
Responses
200
Successful Response
Response body for GET /api/v1/mcp-tools/metrics.
object
generated_at
required
string format: date-time
tools
Array<object>
Per-tool rollup entry within :class:MCPToolMetricsResponse.
object
alert
boolean
calls_total
required
integer
error_rate
required
number
errors_total
required
integer
p50_latency_ms
required
integer
p95_latency_ms
required
integer
tool_name
required
string
window_hours
required
integer
422
Validation Error
object
detail
Array<object>
object
ctx
object
input
loc
required
Array
msg
required
string
type
required
string