get_tool_metrics
Retrieve call count, error rate, p50/p95 latency, and distinct error classes for one MCP tool over a chosen look-back window to diagnose reliability and performance issues.
Instructions
Return latency and error-rate statistics for a single MCP tool.
Queries the ``tool_invocations`` telemetry table for all recorded
calls to ``tool_name`` in the last ``days`` days.
Returns call count, error rate, p50/p95 latency in milliseconds,
and the distinct error classes seen. Returns ``{"calls": 0}`` if
no invocations have been recorded yet.
Args:
tool_name: Exact name of the MCP tool (e.g. "list_objects").
days: Look-back window in days (default 7).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tool_name": "<tool_name>"
},
"name": "get_tool_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| tool_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |