Skip to main content
Glama

search

Retrieve relevant document chunks from a knowledge base by submitting a query. Results are sorted by relevance using pre-computed embeddings, with options for scope and count.

Instructions

Search the knowledge base for relevant document chunks.

``top_k`` defaults to the ``top_k`` config field so ``settings_set``
governs the candidate count for agents that don't pass it explicitly.
``scope`` picks the pool: ``"raw"`` (source chunks), ``"wiki"`` (wiki
page bodies), or ``"both"`` (default, unfiltered). Returns chunks
sorted by relevance. No LLM call -- uses pre-computed embeddings.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
top_kNo
scopeNoboth

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses that the tool uses pre-computed embeddings and makes no LLM call, which is helpful. However, without annotations, it does not explicitly state that the operation is read-only or mention side effects, though inference suggests it's safe.

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?

The description is concise with four sentences, each adding value: purpose, top_k default, scope explanation, return type, and nature (no LLM). No redundant or unnecessary information.

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?

Given the straightforward nature of the tool and the presence of an output schema, the description covers key aspects: purpose, parameter defaults, scope options, and operational nature. It is sufficiently complete for an agent to use correctly.

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

Parameters5/5

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

The input schema has 0% description coverage, but the description fully compensates by explaining the behavior of each parameter: top_k defaults to a config field, scope options ('raw', 'wiki', 'both') are enumerated, and the purpose of query is implied. This adds significant meaning beyond the schema.

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 clearly states 'Search the knowledge base for relevant document chunks,' indicating a specific verb and resource. There are no sibling tools with similar purpose, so no need for differentiation.

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

Usage Guidelines3/5

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

The description provides context on top_k defaulting to config and scope options, but lacks explicit guidance on when to use this tool versus alternatives or when not to use it. It implies usage for semantic search but does not contrast with potential exact-match tools.

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/tobocop2/lilbee'

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