Run a query
queryRun a read-only SQL SELECT against a source to answer user questions, capturing assumptions when definitions are missing so results stay reviewable.
Instructions
Run one read-only SQL SELECT against a source. question is the user's question. When no definition you were given covers part of the question, say what you assumed in assumptions, one short sentence each ("active customer means an order in the last 90 days"); they're kept with this answer on the user's computer, for them to review and turn into definitions.
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": {
"source": "<source>",
"sql": "<sql>",
"question": "<question>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| source | Yes | ||
| question | Yes | ||
| assumptions | No |