Ask a question about the data
ask_dataAnswers business questions in English or Arabic by writing, validating, and running SQL, then explaining the result with rows and a chart.
Instructions
Answer a business question with this server's agent: it writes the SQL, checks it, runs it, fixes it if it fails, and explains the result in the question's language.
Returns the answer, the SQL that ran, up to 200 rows, a chart spec and (optionally) a PNG chart. Takes 5-30 seconds.
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": {
"question": "<question>"
},
"name": "ask_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chart | No | Also return the chart as a PNG image when the result suits one. | |
| question | Yes | A business question in English or Arabic, e.g. 'Monthly revenue in 2017' or 'ما متوسط تقييم المراجعات؟'. |