Skip to main content
Glama

ai_infer_business_names

Infers business-ready Java class names from database tables for Spring Boot projects, using rule-based logic or optional AI (Claude).

Instructions

从数据库表/列推断 Spring Boot 项目中业务上合理的 Java 命名。默认基于 15 条命名规则; 设 prefer_llm=true 且 ANTHROPIC_API_KEY 可用时,优先调用 Claude (启用 prompt caching 节省 token)。返回每张表的 class_name + reason + table_kind (entity/association/log/dict/config)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tablesYes待推断的表列表
prefer_llmNo是否优先调用 Claude API (需要 ANTHROPIC_API_KEY)
modelNoAnthropic 模型 IDclaude-sonnet-4-6
Behavior4/5

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

With no annotations provided, the description carries full burden and discloses key behaviors: rule-based default, optional LLM invocation with prompt caching, output format. It lacks details on error handling or performance aspects.

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 concise (3-4 sentences), front-loaded with the main purpose, and includes all essential details without superfluous text.

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?

While the description covers purpose, modes, and output fields, it lacks details on error cases, performance implications, or example outputs. Given no output schema, more completeness would be beneficial.

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

Parameters4/5

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

Schema coverage is 100%, but the description adds significant context about how prefer_llm interacts with API key, the effect of model parameter, and the output structure (class_name, reason, table_kind), going 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 infers business-oriented Java names from database tables/columns for Spring Boot projects, distinguishing it from siblings like ai_summarize_schema or ai_metrics.

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?

It explains two modes (rule-based vs LLM) and the precondition for LLM mode (API key). However, it does not explicitly contrast with sibling tools or state when not to use this tool.

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/ZhaoXingPeng/DBJavaGenix'

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