Check if the ontology covers a question
check_answerableValidate whether the ontology covers every entity in a user question before writing SQL, returning per-entity coverage, an overall verdict, and recommended next steps.
Instructions
Evaluate before writing SQL whether the ontology covers every entity in a user question, returning per-entity coverage (covered, covered_by_value, weak, or not_covered), an overall verdict, and next steps. Call first in the answering workflow and then call get_query_context for covered Terms; do not substitute uncovered metrics. Use search_ontology for ad-hoc exploration instead of question coverage checks.
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": "check_answerable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | No | 1-5 entity phrases extracted from the question in the ontology's language. Extract 1-5 entity phrases from the question (ported from Auto Ontology's entity coverage prompt): - Include subject nouns and domain terms (invoice, customer, shipment) and qualified phrases (order shipment, employee hire). - Keep an aggregation word attached when it names a metric (total revenue, average order value), but not when it is only how the question is asked ("how many shipments" → shipment). - Keep a multi-word filter item together (waterproof hiking tent for family camping). - Keep names that identify something: product names, brands, categories, places. - Resolve glossary abbreviations to their definition (MRR → monthly recurring revenue). - Exclude bare verbs, numbers, calendar literals, standalone status adjectives and generic words (id, name, type, code, value). | |
| question | Yes | The user's natural-language question. | |
| datasource | No | Datasource name. Optional when only one datasource is registered. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||