A Spring Boot-based MCP server with OpenAI/Groq integration for chat functionality
This Spring Boot MCP server has a single tool 'chat' with critical deficiencies. The tool lacks a proper input schema in the evaluated source code, only a basic parameter structure is visible ('msg' as string), but no formal JSON Schema with type declarations and constraints is shown in the McpController.kt file. The description 'Send a message to the chat model and receive a response' is generic (51 chars) and fails to explain WHEN to use this tool vs. alternatives, what the model context is, or what response structure to expect. No output schema documentation is visible. The tool name 'chat' violates verb-noun naming convention, it should be 'send_message' or 'send_chat_message' to clarify the action. Parameter description is missing entirely for the 'msg' input. No error handling guidance, no recovery instructions, and no response field documentation. The server does not register tool annotations (readOnlyHint, destructiveHint, idempotentHint), missing composition helpers, and lacks pagination/limit controls for any response. Spring Boot HTTP transport is correct, but the tool definition quality falls far below production standards.
Send a message to the chat model and receive a response
Missing input schema: The 'chat' tool has no visible JSON Schema with type definitions, constraints, or enum declarations. Only a bare parameter name 'msg' is shown without formal schema structure.
Generic tool description (51 chars): 'Send a message to the chat model and receive a response' lacks context. Does not explain what model, what response format, when to use vs. alternatives, prerequisites, or state modification semantics.
Weak tool naming: 'chat' is not an action verb and violates verb_noun convention. Should be 'send_chat_message' or 'send_message' to clarify the action for LLM intent parsing.
Missing parameter description: Input parameter 'msg' has no description. LLMs cannot infer intent from a bare name, description must explain expected content, length, format.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 26 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 20 | - | v1 |
No output schema documentation: The tool response structure is not documented. LLMs cannot plan downstream operations or extract relevant fields without knowing return type and fields.
No error handling guidance: Tool definition lacks actionable error recovery instructions. If the call fails, LLM has no recovery strategy.
Missing tool annotations: No readOnlyHint, destructiveHint, or idempotentHint declared. LLMs cannot reason about retry safety or state mutation.