Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Check if the ontology covers a question

check_answerable
Read-onlyIdempotent

Validate 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

NameRequiredDescriptionDefault
entitiesNo1-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).
questionYesThe user's natural-language question.
datasourceNoDatasource name. Optional when only one datasource is registered.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.2
    • changedInput schema / properties / entities / description
      Previous value: -"1-5 entity phrases you 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):\n- Include subject nouns and domain terms (invoice, customer, shipment) and qualified phrases (order shipment, employee hire).\n- 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).\n- Keep a multi-word filter item together (waterproof hiking tent for family camping).\n- Keep names that identify something: product names, brands, categories, places.\n- Resolve glossary abbreviations to their definition (MRR → monthly recurring revenue).\n- Exclude bare verbs, numbers, calendar literals, standalone status adjectives and generic words (id, name, type, code, value).\n"New value: +"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):\n- Include subject nouns and domain terms (invoice, customer, shipment) and qualified phrases (order shipment, employee hire).\n- 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).\n- Keep a multi-word filter item together (waterproof hiking tent for family camping).\n- Keep names that identify something: product names, brands, categories, places.\n- Resolve glossary abbreviations to their definition (MRR → monthly recurring revenue).\n- Exclude bare verbs, numbers, calendar literals, standalone status adjectives and generic words (id, name, type, code, value).\n"
    • changedInput schema / properties / question / description
      Previous value: -"The user's question."New value: +"The user's natural-language question."
  2. First observedv0.3.0

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so safety needs no restating. The description adds genuinely non-schema behavior: the coverage status vocabulary, an overall verdict plus next steps, and the fact that this tool gates the workflow and must precede get_query_context. It doesn't discuss cost, rate limits, or failure/degradation handling, keeping it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the action and return shape, followed by workflow sequencing and the alternative. No filler and no repetition of structured fields.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only coverage check with an output schema, the description supplies everything an agent needs beyond structured data: what it returns conceptually, where it sits in the workflow, and which sibling to use instead. Nothing critical is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, including a detailed entity-extraction recipe and the rule that datasource is optional when only one is registered, so the schema carries the burden. The description adds only the notion that 'every entity in the question' matters, which is a marginal increment over the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource — evaluating whether the ontology covers every entity in a user question before SQL is written — and even enumerates the possible per-entity outcomes (covered, covered_by_value, weak, not_covered). It clearly separates itself from search_ontology (ad-hoc exploration) so an agent can pick it without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit ordering guidance is given (call first in the answering workflow, then get_query_context for covered Terms), plus a prohibition (do not substitute uncovered metrics) and a named alternative for the different use case (search_ontology). When-to-use, what-to-do-next, and when-not-to-use are all covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.