Skip to main content
Glama

spring_beans

Lists Spring context beans from a running application without code changes, prioritizing window and panel beans and filtering by name or class.

Instructions

For Spring applications: list the beans of the application's Spring context, which is found automatically without any change to the application. Window and panel beans are listed first and can be shown with open_spring_bean. Fails politely if the application has no Spring.

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": "spring_beans"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterNoOnly beans whose name or class contains this text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the disclosure burden well: it explains automatic context discovery without application changes, the ordering of window and panel beans, and graceful failure for non-Spring apps. It could go further by stating that this is a read-only listing with no side effects.

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?

Three sentences, front-loaded with the core action and followed by ordering and failure behavior. The automatic-discovery clause is slightly verbose but earns its place by removing setup concerns.

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?

A simple read-only listing tool with one fully documented parameter and no output schema; the description covers scope, ordering, sibling routing, and failure mode. Nothing essential is missing for an agent to invoke it correctly.

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 coverage is 100%, so the single filter parameter is already fully documented in the schema. The description adds no meaning about filtering syntax or matching behavior beyond that, which is acceptable given the complete schema.

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?

States a specific verb and resource (list the beans of the application's Spring context) and scopes it to Spring applications. It distinguishes itself from open_spring_bean by clarifying that this tool lists beans while that one shows them.

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

Usage Guidelines4/5

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

Makes the usage context explicit (Spring applications) and routes the agent to open_spring_bean for viewing an individual bean. It also sets the expectation that the tool fails politely when no Spring context exists, though it does not spell out when not to use it.

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