Skip to main content
Glama
nhuson269

MCP Spring Boot Toolkit

by nhuson269

generate_entity

Generate a JPA entity class with Lombok, audit fields, and proper mappings based on class name and field specifications.

Instructions

Generate a JPA Entity class with Lombok annotations, audit fields, and proper mappings

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsYesEntity fields
classNameYesEntity class name in PascalCase, e.g. 'Product'
tableNameNoDatabase table name. Defaults to snake_case of className
withAuditNoInclude createdAt/updatedAt audit fields
packageNameNoBase package namecom.example.demo
withSoftDeleteNoInclude soft delete (deleted flag)
Behavior3/5

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

The description reveals that the tool includes Lombok annotations, audit fields, and proper mappings, which are behavioral traits. However, it does not disclose whether the output is a string of code or written to a file, nor any side effects. Since annotations are empty, the description carries the burden, and it partially meets this by mentioning key features but omits critical output mechanics.

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 sentence with a clear verb-first structure. It contains no redundant information and is appropriately sized for the tool's purpose, making it easy to parse.

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?

With 6 parameters and no output schema, the description should provide more context about the generated output's structure and format. It fails to explain what the tool returns (e.g., code string, file path) or detail any conventions beyond Lombok and audit fields. This leaves a significant gap for an agent that needs to know what to expect from invocation.

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?

The schema description coverage is 100% for parameters, so the baseline is 3. The description adds minimal meaning by referencing 'audit fields' (ties to withAudit) and 'proper mappings' (ties to columnName), but it does not explain individual parameters beyond what the schema already provides. Thus, it adds only marginal value.

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: 'Generate a JPA Entity class with Lombok annotations, audit fields, and proper mappings'. It uses a specific verb ('Generate'), identifies the resource (JPA Entity class), and lists key features. This distinguishes it from sibling tools like generate_controller or generate_service, which target different artifacts.

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 JPA entity is needed, but it does not explicitly differentiate from alternatives or state when not to use it. While the name and context suggest it is the correct tool for entity generation, there is no explicit exclusion or comparison to sibling generators.

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