Recommend Chart
recommend_chartExecutes a SQL query, analyzes the resulting DataFrame columns, and recommends suitable chart types with configuration keys for dashboard visualizations.
Instructions
Recommend chart types based on the data returned by a SQL query.
Execute the SQL, analyze the resulting DataFrame columns, and suggest the most appropriate chart types with their config keys.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sql": "<sql>"
},
"name": "recommend_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL query to execute against DuckDB. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |