Flight search service implementing Model Context Protocol (MCP) tools that allow AI models to search for flight information using SerpAPI Google Flights
This server has 2 tools with moderate definition quality. Both tools have descriptions and basic input schemas, but the schemas lack comprehensive parameter documentation and type constraints. The server provides functional tool definitions but falls short of production-grade quality standards. Naming is clear (verb_noun style), but parameter descriptions are minimal and output schemas are not documented. Error handling is absent from the visible code.
Search for flights using SerpAPI Google Flights. This MCP tool allows AI models to search for flight information by specifying departure and arrival airports and travel dates.
Check if the Model Context Protocol server is running. This MCP tool provides a simple way to verify the server is operational.
Output schemas completely undocumented. LLMs cannot know what fields search_flights returns or how to extract data for downstream chaining. Violates pattern:tool requirement to document return types.
Parameter descriptions are too minimal (11-47 characters). Lack actionable format/constraint guidance. 'Departure date (YYYY-MM-DD)' is present but format is not enforced via JSON Schema pattern. No guidance on timezone handling or date range constraints (past dates? how far in future?).
No error handling documentation or recovery guidance. Code does not show what happens if origin/destination is invalid, API key is missing, or SerpAPI rate limit is hit. LLM receives no 'what to do next' guidance on failures.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 54 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 43 | - | v1 |
SERP_API_KEY is loaded as environment variable (good), but tool description does not mention that this key is required to function. If key is missing, tool silently fails. Error messages should guide users to configure the key.
No parameter constraints on airport codes. Tool accepts any string for origin/destination but should validate against IATA code format (3 letters) or provide enum of common airports. Current implementation allows hallucinated codes like 'INVALID_CODE'.
search_flights_tool is async but server_status is not. No documentation on which tools are blocking vs async. Inconsistent implementation may cause LLM confusion about timing semantics.