Skip to main content
Glama
MCP Spring Boot Actuator

MCP Spring Boot Actuator

by Dmitriusan

analyze_caches

Inspect Spring Boot /caches data to list registered caches, flag unbounded caches that risk memory leaks, and surface cache configuration issues.

Instructions

Analyze Spring Boot Actuator /caches endpoint. Lists registered caches, detects unbounded caches (memory leak risk), and identifies cache configuration 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_caches"
  }
}

Input Schema

NameRequiredDescriptionDefault
jsonYesJSON response from the /caches endpoint (curl http://localhost:8080/actuator/caches)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.14

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: 'Analyze' plus the enumerated detections ('unbounded caches (memory leak risk)', 'configuration issues') make clear this is a passive read-only inspection that produces findings rather than mutations. It does not state what happens with malformed or non-/caches JSON, which is the main residual gap for a single-input parser.

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

Conciseness4/5

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

A single tight sentence with the endpoint identification front-loaded and the three analysis capabilities following. Nothing is wasted, though the parenthetical '(memory leak risk)' is the only part that conveys value beyond the verb list.

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

Completeness4/5

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

For a one-parameter, no-output-schema analysis tool, the description covers purpose, scope, and the categories of findings an agent would receive. The remaining omission — input validity requirements or failure behavior — is minor given the schema fully specifies the parameter and its source.

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 parameter 'json' is already documented with an example curl command, so the schema does the heavy lifting. The description adds no further meaning about the expected input format or what structure the JSON must have, which is the baseline-3 case for full schema coverage.

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

Purpose5/5

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

The description names a specific verb ('Analyze') and a specific resource (Spring Boot Actuator /caches endpoint), then enumerates the concrete outputs: listing registered caches, detecting unbounded caches, and flagging configuration issues. Against siblings like analyze_beans or analyze_metrics, the resource name alone makes the distinction unambiguous.

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 agent can infer this applies when inspecting cache configuration, but the description states no explicit when-to-use condition, no prerequisites, and no alternatives (e.g., that this operates on static endpoint output rather than live runtime state). The only concrete guidance lives in the schema's parameter description, not the tool description.

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