A Spring Boot MCP server for managing business trips with WebMVC transport
Server implements 4 trip management tools with basic schema definitions and descriptions. Tools use proper verb naming conventions (registerTrip, getTrips, getTrip, cancelTrip) which is appropriate. However, there are significant gaps in output schema documentation, parameter validation guidance, and error handling patterns. Descriptions are present but minimal (10-60 chars), falling below the 50-200 char production baseline. No enum constraints on status fields, no pagination support on list operations, and critical error handling patterns are absent. Input parameters have descriptions but lack depth on constraints and valid value ranges. The implementation uses Spring AI annotations properly, but the tool definitions lack production-grade robustness.
Cancel a planned trip
Get trip details by reference number
Get all business trips registered by a user
Register a new business trip. Returns trip reference for tracking.
Output schemas completely undocumented, LLM cannot predict Trip object structure or List<Trip> field order/content
No pagination support on getTrips despite returning unbounded list, no limit parameter, no offset/cursor, no total_count in response
cancelTrip (destructive operation) lacks confirmation pattern and has no dry-run mode, agent cannot preview cancellation before executing
Tool descriptions are minimal (26-60 chars, well below 50-200 char baseline) and lack context on when to use each tool, error modes, and dependencies
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 44 | 2026-07-28+ | v2 |
| 2026-03-09 | D | 50 | - | v1 |
No error handling patterns, descriptions do not guide LLM on recovery steps (e.g., 'If user not found, call getTrips() first'; 'If trip already cancelled, cannot cancel again')
No enum constraints on TripStatus field, LLM cannot determine valid status values (PLANNED vs APPROVED vs COMPLETED vs CANCELLED) without reading Trip entity code
Tool annotations missing: no @readOnlyHint on GET tools, no @destructiveHint on cancelTrip, no @idempotentHint on registerTrip
Parameter constraints underdocumented: no guidance on date format validation (YYYY-MM-DD enforced?), city name length, purpose field validation, or userId format