Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Search ontology catalog by keyword

search_ontology
Read-onlyIdempotent

Find ontology catalog objects by keyword across terms, mapped columns, SQL attributes, glossary entries, examples, sources, and tables when exact names are unknown.

Instructions

Search one datasource's ontology catalog across Terms, mapped columns, SQL attributes, glossary entries, verified examples, sources, unmodeled tables, and (in the knowledge store) record values and top full-text hits. Use as the primary discovery tool when you do not know exact names; use list_terms to browse all Terms, get_term for one known Term, search_text for deep knowledge-store prose search, and search only for ChatGPT connector IDs. Uses lexical scoring by default and blends local embeddings when the semantic extra is installed.

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": {
      "query": "<query>"
    },
    "name": "search_ontology"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindsNoRestrict matches to specific catalog object kinds (default: all kinds).
limitNoMaximum ranked hits to return (1-50).
queryYesLexical keywords to match: a business noun, metric, column name, or stored value.
datasourceNoDatasource name. Optional when only one datasource is registered.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.6.2
    • changedInput schema / properties / kinds / description
      Previous value: -"Restrict result kinds."New value: +"Restrict matches to specific catalog object kinds (default: all kinds)."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum hits."New value: +"Maximum ranked hits to return (1-50)."
    • addedInput schema / properties / limit / maximum
      Added value: +50
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • changedInput schema / properties / query / description
      Previous value: -"Words to look for: a business noun, metric, column or value."New value: +"Lexical keywords to match: a business noun, metric, column name, or stored value."
  2. First observedv0.3.0

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description is not responsible for that. It still adds genuine behavioral context the annotations cannot: ranking is lexical by default and blends local embeddings only when the semantic extra is installed, and record values and full-text hits are available only in the knowledge store. It stops short of describing pagination or how ties are broken, which keeps it from 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.

Conciseness4/5

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

The definition is front-loaded: purpose first, then routing guidance, then ranking behavior, with every sentence doing work. The eight-item enumeration of searchable kinds and four named alternatives make it dense, but none of that content is filler. It could be marginally tighter without losing meaning.

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?

An output schema exists, so return values need not be explained, and the annotations carry the safety profile. What remains for the description to cover: scope, when to use it vs. siblings, and ranking behavior, is all present and accurate for a four-parameter discovery tool.

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%, so all four parameters are already documented, and the description mostly restates this at a higher level. It does clarify that 'query' means lexical keywords and reinforces the datasource scoping ('one datasource's'), but it adds no format, syntax, or precedence detail beyond what the schema provides. The baseline of 3 is appropriate.

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 definition opens with a specific verb and resource ('Search one datasource's ontology catalog') and enumerates exactly what is searched: Terms, mapped columns, SQL attributes, glossary entries, verified examples, sources, unmodeled tables, record values, and full-text hits. That scope statement makes it clearly distinguishable from search_text, get_term, and list_terms.

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?

It explicitly states the selection condition ('primary discovery tool when you do not know exact names') and names the alternatives with their distinct conditions: list_terms for browsing, get_term for a known Term, search_text for prose in the knowledge store, and search for connector IDs. Each alternative is tied to a clear criterion, leaving nothing to inference.

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