A Model Context Protocol server implementation using Spring Boot and Spring AI, exposing calculator tools and system configuration resources.
This is a minimal MCP server with 3 simple calculator tools and 1 resource. Tool definitions are present with names, descriptions, and basic parameter schemas, but quality is below production baseline across multiple dimensions. Tool names are generic verbs (add, subtract, multiply) without context, descriptions are extremely brief (10-20 chars), parameter descriptions are minimal, output schemas are undocumented, and no error handling or recovery guidance exists. The resource definition is present but similarly sparse. This server demonstrates basic MCP mechanics but lacks the depth required for agent reasoning and production confidence.
Adds two numbers and return the result.
Multiplies two numbers and return the result.
Subtracts two numbers and return the result.
Tool names lack context and are indistinguishable from generic math operations. Names 'add', 'subtract', 'multiply' do not follow verb_noun pattern and provide no semantic value to differentiate intent. LLMs cannot reason about when to select add vs subtract without explicit description context.
Tool descriptions are critically brief (10-20 characters). Production baseline is 194 chars (p10=34, p90=392). Current descriptions 'Adds two numbers and return the result.' lack context for LLM selection, do not explain when to use (as opposed to other tools), and do not document return values. This violates pattern:tool-description baseline requiring descriptions between 10 - 1024 chars with complete context.
Output schemas are completely undocumented. Tools return int primitives, but there is no schema documentation explaining: what does the integer represent? What is the range? Are there error cases where output differs? Production baseline: 100% of A+ tools have documented return types. Current implementation has zero documentation of output structure.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 46 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 40 | - | v1 |
Parameter descriptions are minimal (3-14 chars: 'First number', 'Second number'). Production baseline: 72 chars average for param annotations. Current descriptions are single phrases with no constraint information, format guidance, range, or examples of valid input. Violates pattern:tool-description requirement that every parameter needs a non-empty description explaining what it controls.
No error handling or recovery guidance. Tools accept int parameters with no validation, bounds checking, or error documentation. What happens if inputs overflow int range? What if sum/difference exceeds int.MAX_VALUE? No error classification (retryable/user-fixable/fatal), no actionable error messages. Violates pattern:recovery-guide which requires error responses to tell the LLM what to do next.
No input validation or constraint documentation. Parameters accept unconstrained integers. Should document: min/max bounds (e.g. -2,147,483,648 to 2,147,483,647 for int32), overflow behavior, whether negative numbers are allowed. Production pattern:constrained-input requires declaring constraints formally so LLMs avoid hallucinated invalid values.
Resource definition (getConfig) lacks descriptions and structure. While @McpResource annotation is present, there is no documentation of: what format does uri 'system-config' use? What is the structure of returned data? Is it always the same TOS text or dynamically generated? Is it read-only? Pattern:tool applies to resources too, lack of context harms discoverability.
No documentation of idempotency. Calculator operations are mathematically pure (add(2,3) always returns 5), but this property is not declared. Tools should use toolAnnotations (idempotentHint) to signal this to agents for safe retry semantics. Current implementation lacks this hint.