Skip to main content
Glama
MCP Spring Boot Actuator

MCP Spring Boot Actuator

by Dmitriusan

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

NameRequiredDescriptionDefault
jsonYesFlat 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}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A3.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full disclosure burden. It usefully communicates that the tool performs stateless threshold-style detection over a supplied snapshot and names the five failure classes it looks for, but it never describes the return shape (findings list? severities? thresholds?) and there is no output schema to compensate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the verb and resource, followed by a tight enumeration of detection targets. No filler, no restatement of the tool name, and every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Input expectations are fully covered via the rich schema, but with no output schema the description should explain what findings look like and how missing metric keys are handled; neither is addressed. Adequate to invoke, insufficient to interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the single 'json' parameter is documented in exceptional detail, including the required metric keys, the accepted measurement-object format and the -1 metaspace sentinel. The description adds nothing about this parameter, but the high-coverage baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Analyze Spring Boot Actuator metrics data') and enumerates the exact conditions it detects (heap, metaspace, error rates, connection pool exhaustion, GC). This clearly separates it from the sibling tools, which target beans, caches, env, health and loggers, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the list of detectable pathologies signals that an agent should call this when hunting JVM, GC, HTTP-error or HikariCP problems. There is no statement of when not to use it, no prerequisite that the JSON must first be assembled from /actuator/metrics calls (that only appears buried in the schema), and no routing toward or away from analyze_health.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.