analyze_metrics
Analyze Spring Boot Actuator metrics to detect JVM heap and metaspace pressure, high error rates, connection pool exhaustion, and GC issues from a flat JSON map of metric values.
Instructions
Analyze Spring Boot Actuator metrics data. Detects JVM heap pressure, non-heap (metaspace) pressure, high error rates, connection pool exhaustion, and GC issues.
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": {
"json": "<json>"
},
"name": "analyze_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | Flat JSON map of metric name to value, assembled from individual Spring Boot /actuator/metrics/{name} calls. Each entry may be a plain number or a Spring Boot measurement object with a 'measurements' array. Key metrics to include: jvm.memory.used, jvm.memory.max, jvm.memory.used.nonheap, jvm.memory.max.nonheap, jvm.threads.live, jvm.threads.peak, jvm.gc.pause.count, jvm.gc.pause.total, http.server.requests.count, http.server.requests.max, http.server.requests.error.count, hikaricp.connections.active, hikaricp.connections.max, hikaricp.connections.pending, hikaricp.connections.timeout. Note: jvm.memory.max.nonheap is -1 when the JVM has no metaspace limit. Example entry: {"jvm.memory.used": 524288000} |