MCP server for searching flights between airports using AviationStack API
Single tool with basic structure but significant quality gaps. Tool name 'search_flights' is appropriately verb-led and clear. Description is present (194 chars) and explains the action, but lacks WHEN to use it, prerequisites (API key requirement), and what the return structure contains. Input parameters have types (string) and descriptions with examples, but descriptions include example values ('BBI', 'DEL') which LLMs may reuse literally. No output schema documented, LLMs cannot predict response structure (success flag, count field, flights array). No error handling guidance beyond generic exception catching. No pagination support despite potential for large result sets. Tool is read-only (correct risk classification) but lacks idempotent/readonly annotations.
Search for flights between two airports using AviationStack. Args: dep_iata: Departure airport IATA code, e.g. "BBI" (Bhubaneswar) arr_iata: Arrival airport IATA code, e.g. "DEL" (Delhi) Returns: dict with flight results or an error message
No output schema documented. LLMs cannot predict response structure (success, count, flights array fields). Breaks downstream tool chaining and forces LLMs to guess field names.
Parameter descriptions include example values ('BBI', 'DEL') which LLMs tend to reuse literally in real calls. Should use enum constraints or format patterns instead.
Tool description lacks prerequisites and context. Does not mention API key requirement, rate limits, or when to use this tool vs alternatives. Missing WHEN/WHY guidance.
No pagination support. If AviationStack returns 100+ flights, response will bloat context window. No limit parameter, no next_cursor, no total count guidance.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 50 | 2026-07-28+ | v2 |
Error handling returns generic exception strings ('Connection timeout', etc.) without recovery guidance. LLM cannot determine if error is retryable or user-fixable.