query-database
Converts natural language queries into multi-step SQL analysis plans and executes them against databases to answer complex analytical questions.
Instructions
Data Analyst Agent: Reasoning Analysis Mode
This tool translates natural language into multi-step SQL analysis plans and executes them against databases. Use this for complex analytical questions requiring more reasoning.
Capabilities
Performs multi-step analyses with each step building on previous results
Analyzes data across multiple tables with complex relationships
Handles complex queries requiring careful reasoning and planning
Produces comprehensive markdown reports with insights
When to Use
For complex analytical questions requiring deep reasoning
When accuracy and comprehensiveness is more important than speed
For queries involving multiple tables or complex relationships
When detailed insights and explanations are needed
Effective Prompts
Be specific about metrics, time periods, and entities of interest
Include relevant business context for interpretation
Specify desired output format (tables, charts, insights)
For complex analyses, break down into logical components
Restrictions:
Don't sent database credentials in the payload, it's handled by the server.
Don't sent API keys in the payload, it's handled by the server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| celpApiKey | No | ||
| databaseConfig | No | ||
| databaseConnectionId | No |