get_metrics_summary
Retrieve aggregated performance metrics for all MCP tools, including request counts, latency percentiles, cache hit/miss statistics, and active connections to monitor health and usage.
Instructions
Get human-readable summary of performance metrics.
Story 2.1: Returns aggregated metrics including request counts, latency percentiles, and cache statistics for all MCP tools.
Returns: dict[str, Any]: Dictionary containing metric summaries with keys: - total_requests: Total number of requests processed - by_tool: Per-tool statistics (counts, latencies, cache stats) - cache_stats: Overall cache hit/miss counts - active_connections: Current connection pool usage
Example:
json { "total_requests": 156, "by_tool": { "search_tags": { "request_count": 42, "latency": {"median": 1.2, "p95": 3.5, "p99": 5.1}, "cache_hits": 10, "cache_misses": 32 } }, "cache_stats": {"total_hits": 45, "total_misses": 111}, "active_connections": 3 }
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_metrics_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||