Skip to main content
Glama
Auto Ontology MCP

Auto Ontology MCP

Full-text search in the knowledge store

search_text
Read-onlyIdempotent

Find matching passages, quotes, and Term bodies across knowledge sources with full-text and optional local hybrid vector search; returns ranked snippets, links, and SQL examples.

Instructions

Run BM25 full-text, compound-substring, and optional local hybrid vector search across knowledge store passages, Term bodies, and sources. Use when searching inside stored prose or quotes; use search_ontology to search structured schema catalogs across any datasource, and get_source to inspect everything from one source. Strips Korean particles, falls back to any-word matching, and fuses local embeddings via RRF when the semantic extra is installed. Returns ranked snippets, Obsidian [[links]], fts_query, and a SQL example.

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_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
termNoRestrict results to passages linked to this Term name.
kindsNoRestrict hits to 'passage', 'term', or 'source' (default: all three).
limitNoMaximum ranked hits to return (1-50).
queryYesWords to search for as written in sources, passages, or Term bodies (any language).
sourceNoRestrict results to passages belonging to this integer source id.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the description is free to add behavior beyond them – Korean particle stripping, any-word fallback matching, and RRF fusion of local embeddings only when the semantic extra is installed. That conditional-degradation detail is exactly the kind of context annotations cannot express.

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?

Three tight sentences, front-loaded with the search modes and followed by disambiguation before behavioral notes. The trailing return-value clause is slightly list-like but short enough to earn its place.

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?

With full annotations, 100% schema coverage and an output schema present, the remaining burden is disambiguation and non-obvious behavior – both covered. Nothing an agent needs in order to call this correctly 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%, so term, kinds, limit, query and source are already documented in the schema and the baseline applies. The description adds scope context (search covers passages, Term bodies and sources) but no syntax, ranking or mutual-exclusion detail for the individual parameters.

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?

States a specific verb and resource ('Run BM25 full-text ... search across knowledge store passages, Term bodies, and sources') and immediately names what it is not: search_ontology for schema catalogs and get_source for source-level inspection. An agent can pick this tool without opening a 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?

Explicitly says when to use it ('searching inside stored prose or quotes') and routes two alternatives to their own conditions: search_ontology for structured schema catalogs, get_source for per-source inspection. Both condition and alternative are stated, not inferred.

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