Skip to main content
Glama
nhuson269

MCP Spring Boot Toolkit

by nhuson269

generate_repository

Generate Spring Data JPA repositories with custom query methods to eliminate boilerplate data access code.

Instructions

Generate a Spring Data JPA Repository with custom query methods

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idTypeNoID field typeLong
entityNameYesEntity name in PascalCase
packageNameNoBase package namecom.example.demo
customQueriesNoCustom query methods
withSpecificationNoExtend JpaSpecificationExecutor for dynamic queries
Behavior2/5

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

No annotations are provided, so the description bears full responsibility for disclosing behavioral traits. It only states what is generated, but fails to mention side effects such as file creation, overwriting behavior, or whether it returns code. This is a significant gap for a code generation tool.

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?

The description is a single, well-structured sentence that immediately communicates the tool's purpose. It is front-loaded and contains no filler or redundant information.

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

Completeness2/5

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

Given the tool has 5 parameters, including a nested customQueries object, and no output schema, the description is too brief. It does not explain what the tool returns (e.g., code snippet, file path) or any constraints (e.g., requiring an existing entity). This leaves the agent without enough context to anticipate the tool's full behavior.

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%, with each parameter having a clear description (e.g., 'Entity name in PascalCase'). The tool description adds marginal value by echoing the 'custom query methods' theme, but it does not provide deeper semantics beyond the 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?

The description clearly states the tool's function with a specific verb ('Generate') and resource ('Spring Data JPA Repository'). It also includes a differentiator ('with custom query methods') that distinguishes it from sibling tools like generate_entity or generate_controller.

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?

The description implies usage when a repository is needed, especially with custom queries, but it does not explicitly state when to use this tool versus alternatives. No exclusions or prerequisites are mentioned, leaving the decision to the agent's inference from the name and sibling context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nhuson269/mcp-spring-boot-toolkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server