ask
Translate a plain-English question about a governed metric or dataset into role-aware SQL and return results with masking details and an audit ID.
Instructions
Ask a plain-English question about a defined metric or dataset, e.g. 'How many encounters per month in 2025 by payer?'. The server maps it to a definition, applies your role's rules, generates SQL itself, and returns the SQL, the result, any masking applied, and an audit id. Denials include a reason_code.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | ||
| kind | No | ||
| rows | No | ||
| grain | No | ||
| target | No | ||
| columns | No | ||
| filters | No | ||
| message | No | ||
| outcome | Yes | ||
| candidates | No | ||
| dimensions | No | ||
| reason_code | No | ||
| row_filters | No | ||
| cost_estimate | No | ||
| audit_event_id | No | ||
| masked_columns | No | ||
| suppressed_cells | No |