Skip to main content
Glama

ao_search

Search a local note vault using hybrid semantic and keyword matching, returning scored excerpts with citations so agents can recall and cite stored knowledge.

Instructions

Search the vault with hybrid semantic + keyword search. Returns scored results with excerpts.

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": "ao_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesSearch query.
principalNoUser/agent id to act as (ACL + audit actor); ignored if the server pins $OMPA_PRINCIPAL
vault_pathNo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the retrieval method (hybrid semantic + keyword) and the return shape ('scored results with excerpts'), which is genuinely useful. It omits that this is a read-only operation, how scoring/ranking works, pagination or limit behavior, and that results are ACL-filtered by principal.

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?

Two sentences, both front-loaded and load-bearing: the first gives method and scope, the second gives the return format. No filler or restatement of the tool name.

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

Completeness2/5

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

For a 4-parameter tool with no annotations, no output schema, and two undocumented parameters, the description is too thin. An agent lacks guidance on scope selection (vault_path), result volume (limit), and identity/ACL effects (principal), all of which affect correct invocation.

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

Parameters2/5

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

Schema coverage is only 50%: 'query' and 'principal' are documented, but 'limit' and 'vault_path' have no schema descriptions. The description mentions no parameters at all, so it fails to compensate — it says nothing about what limit does, what vault_path '.' means, or how principal affects ACL and audit.

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

Purpose4/5

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

States a specific verb and resource ('Search the vault') plus the retrieval mechanism ('hybrid semantic + keyword search'), which is more informative than a bare 'search'. It does not, however, distinguish this from graph-oriented siblings such as ao_kg_query, so an agent cannot tell from the description alone which retrieval path to pick.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, and no mention of alternatives such as ao_kg_query or ao_as_of. The agent must infer from the tool name that this is the general vault search entry point.

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