Skip to main content
Glama

akb_search

Search documents using hybrid retrieval that fuses semantic and keyword matching for accurate results. Supports natural language queries and keywords with filters for vault, collection, and tags.

Instructions

Search documents with hybrid retrieval — dense vector (semantic) fused with BM25 sparse (keyword) via Reciprocal Rank Fusion. Handles both natural-language questions and short keyword queries well. For exact string / regex matches (code, URLs, version numbers) prefer akb_grep. Returns each hit's uri; use akb_drill_down or akb_get with that URI for full content. Response reports returned (in results) and total_matches (size of the deduped prefetch pool — NOT a corpus-wide hit count; vector ANN is top-K only). When truncated=true the prefetch pool was capped, meaning the corpus may hold more hits than reported — switch to akb_grep with count_only=true for an exact literal-substring count, or refine the query.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural language search query
vaultNoLimit search to a specific vault
collectionNoLimit search to a specific collection
typeNoFilter by document type
tagsNoFilter by tags
limitNo
Behavior5/5

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

Discloses key behavioral traits: result count is from deduped prefetch pool, not corpus-wide; explains truncated flag meaning; suggests using akb_grep for exact count. No annotations provided, so description carries full burden and does so well.

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?

Each sentence adds value, from hybrid method to caveats about hit counts. Front-loads purpose and usage, then explains nuances. No fluff.

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

Completeness4/5

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

Covers main purpose, usage alternatives, behavioral details, and limitations. Lacks explicit listing of all output fields (e.g., results array structure), but given no output schema, the description provides sufficient guidance for an agent.

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 coverage is high (83%), so baseline is 3. Description does not add much parameter-level detail beyond schema; it focuses on behavior and result interpretation. However, it clarifies the meaning of total_matches and returned fields, which are not 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 it searches documents using hybrid retrieval (dense+sparse) and clearly distinguishes from sibling akb_grep for exact/regex matches. The verb 'search' and resource 'documents' are specific, and the method is described.

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 tells when to use (natural-language and keyword queries) and when to prefer akb_grep (exact string/regex). Also explains how to get full content via akb_drill_down or akb_get with the returned URI.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dnotitia/akb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server