HTTP-based MCP Server built with Spring AI for managing HelpDesk support tickets
This server has basic tool structure but significant definition gaps. Two tools are explicitly defined with @Tool annotations and proper Spring AI registration. However, parameter descriptions are minimal, output schemas are undocumented, error handling is absent, and security/composition patterns are not addressed. The tools show verb-based naming (createTicket, getTicketStatus) which is correct, but lack depth in parameter documentation and output specification. Both tools fall into the 'fair/poor' range individually.
Create a HelpDesk support ticket
Fetch the status of the tickets based on a given userName
Output schemas are not documented. Neither tool provides a schema definition of what it returns. createTicket returns a String; getTicketStatus returns List<HelpDeskTicketEntity>. LLMs cannot plan downstream operations or extract data without knowing the response structure.
Parameter descriptions are incomplete and generic. 'Details to create a Support ticket' and 'Username to query tickets for' lack actionable detail. No format constraints, no dependencies documented (e.g., does issue have a max length? Is userName case-sensitive?).
No error handling guidance. If createTicket fails (duplicate issue, invalid user, DB error), the tool returns nothing documented and LLMs have no recovery path. If getTicketStatus finds no tickets, response is ambiguous (empty list vs. error). Per pattern:recovery-guide, errors must tell the LLM what to do next.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 50 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 47 | - | v1 |
createTicket accepts a custom HelpDeskTicketPayload object but the tool definition only shows the top-level @ToolParam. The nested object structure (payload.issue, payload.userName) is not explicitly documented in the input schema visible in the code. This forces LLMs to infer structure rather than being told it explicitly.
getTicketStatus returns a raw entity list (List<HelpDeskTicketEntity>).
No permission gates or scope declarations. createTicket (a write operation) should declare what permissions it requires and verify the caller has authority. Per pattern:scope-declaration and pattern:permission-gate, destructive/sensitive tools must be gated.
No audit logging visible in tool code. createTicket and getTicketStatus perform data operations but do not log who called them, when, with which parameters, or what the result was. Per pattern:audit-trail, all agent-initiated actions must be traceable.
getTicketStatus parameter 'userName' is a bare string with no format guidance. Does it support partial matches? What happens if not found?