MCP Server for SearXNG local search engine integration
Single tool with proper Spring-AI annotations and reasonable structure, but significant gaps in parameter descriptions, output schema documentation, and error handling guidance. The tool definition is explicit and visible in WebSearchToolService.java with @McpTool and @McpToolParam annotations. However, parameter descriptions are minimal (e.g., 'The Search Query' and 'the page of the results' lack format/range guidance), and the output schema (SearxngResponse, SearxngResult records) is inferred from Java code rather than explicitly documented in the tool description. No error handling guidance, no pagination documentation despite accepting a 'page' parameter, and no constraints on query length or page bounds.
Search the web using SearXNG local search engine. Returns a list of search results with title, URL, and description.
Parameter descriptions lack actionable constraints. 'The Search Query' does not specify length limits, character restrictions, or format requirements. 'the page of the results' lacks min/max bounds (what happens if page=0 or page=999999?).
Output schema not documented in tool description. LLMs cannot see that web_search returns {query, results: [{url, title, content, engine, score}], suggestions}. This forces LLMs to infer structure from context.
No error handling guidance. Tool description does not explain what happens on timeout (timeout is set to 30s in code), invalid query, or when SearXNG returns zero results. No recovery hints provided.
Pagination behavior undocumented. Tool accepts 'page' parameter but description does not specify: (1) what is the default page size per request? (2) what is the maximum page number? (3) does SearXNG return total result count or next_cursor?
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 49 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 46 | - | v1 |
No result limits documented. LLMs do not know how many results to expect per page. If SearXNG returns 100+ items per page, token usage could explode.