A conversational interface for Redash that allows natural language queries to be converted to SQL, direct SQL query execution, and predefined query execution with parameters
Three tools with basic HTTP endpoints and Pydantic models. All tools have descriptions (10-50 chars, below ideal 50-200 baseline) and input schemas visible in code. However, parameter descriptions are minimal or absent, and output schemas lack documentation. No error recovery guidance, no parameter constraints (enums, ranges), and no indication of idempotency or side effects. Naming is verb-forward (get_, ask_) but descriptions are generic. Tool composition is reasonable (three distinct operations), but parameter documentation falls short of production standards.
Execute a predefined query with optional parameters.
Execute a natural language question or direct SQL query.
List all available Redash data sources.
Parameter descriptions missing or trivial. 'question' param in ask_question lacks guidance on format (natural language vs SQL syntax). 'parameters' in ask_predefined_question has no type hint or structure documentation. LLMs cannot infer valid input without explicit descriptions.
Output schemas undocumented. QueryResponse model exists in code but is not exposed in tool definitions. Agents cannot plan downstream calls without knowing response structure (answer, sql_query, data fields).
No error recovery guidance. HTTPException responses return raw error strings ('Failed to fetch data sources: ...') without actionable next steps. LLMs cannot determine if error is retryable, user-fixable, or fatal.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | <=2025-11-25 | v2 |
Tool descriptions too short (10-50 chars vs 50-200 baseline). 'List all available Redash data sources' and 'Execute a natural language question or direct SQL query' lack context on when to use each tool, prerequisites, or what data is returned.
No parameter constraints. 'query_id' accepts any integer with no validation. 'parameters' object has no schema or type hints. Missing enums, ranges, or format constraints invite invalid input from LLMs.