A Spring Boot-based MCP server that provides Stack Overflow search functionality through REST endpoints
The 'search' tool has a minimal input schema with only a 'query' parameter. The tool description is present but very short (40 chars). The input schema lacks proper structure validation, enums, or constraints. No output schema is documented in the provided source. The tool does not follow verb_noun naming convention (should be 'search_stack_overflow' for clarity). No pagination guidance, no documented return structure, and no error handling patterns visible. The implementation appears to be a Spring Boot web application, but the actual tool registration mechanism, parameter validation, and output shaping are not visible in the provided code excerpt, making it impossible to verify full schema compliance.
Search Stack Overflow for questions and answers
Tool name 'search' is generic and lacks verb_noun specificity. Should be 'search_stack_overflow' or 'search_questions' to clarify intent and prevent collision with other search tools.
Tool description is only 40 characters ('Search Stack Overflow for questions and answers'). Does not explain WHEN to use this tool vs alternatives, prerequisites, or rate limits. Descriptions should be 50-200 chars with actionable guidance per pattern:tool-description.
Input schema for 'query' parameter has no constraints: no minimum/maximum length, no pattern validation, no enum options. Free-form strings invite hallucinated or malformed queries. Should define length bounds (e.g., 1-500 chars) and reject common pitfalls.
No documented output schema visible. LLMs cannot plan downstream tool calls or extract specific fields without knowing what the response contains. Must document return type, field names, and structure.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 22 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 37 | - | v1 |
No pagination or result limit parameters visible. Stack Overflow searches can return thousands of results; unbounded responses will exhaust token limits. Should implement limit/offset/cursor parameters and cap at 20-50 results per call.
No error handling guidance documented. Stack Overflow API calls can fail (rate limits, network errors, no results). Tool must return actionable error messages: 'Rate limited. Retry in 60 seconds.' or 'No results found. Try a simpler query.'
Tool implementation source (SearchController.java) is not fully visible. Cannot verify actual parameter validation, schema enforcement, output shaping, or error handling in the compiled code.