Skip to main content
Glama

search

Search indexed documents using natural language or keywords. Choose hybrid, semantic, or lexical search modes for relevant results.

Instructions

Search the indexed documents.

Args: query: Natural-language query or keywords. k: Number of results to return (1-50, default 8). mode: 'hybrid' (RRF fusion of semantic + lexical, default), 'semantic' (vector KNN only), or 'lexical' (FTS5 BM25 only). If Ollama is offline, hybrid/semantic fall back to lexical and a warning is included in the response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kNo
modeNohybrid
queryYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations provided, the description carries full burden for behavioral traits. It discloses mode options, default, and the fallback to lexical if Ollama is offline with a warning in the response. This is good transparency, though it doesn't cover authentication or rate limits.

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 description is concise, using a clear docstring format with 'Args' section. The purpose is stated in the first sentence. It could be slightly more compact, but it is well-structured and efficient.

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?

Given the presence of an output schema, the description does not need to explain return values. It covers all parameters, search modalities, and fallback behavior. It could mention sorting or result count details, but overall it is sufficiently complete for a search tool.

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 schema has 0% description coverage, but the description thoroughly explains each parameter: query (natural-language or keywords), k (range 1-50, default 8), and mode (enum values with detailed behavior, including fallback). This adds substantial 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 the tool's function: 'Search the indexed documents.' It uses a specific verb 'Search' and a distinct resource 'indexed documents', distinguishing it from siblings like get_chunk, index_documents, and stats.

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 explains how to use the tool (query, k, mode) and mentions fallback behavior for 'hybrid' mode when Ollama is offline. However, it does not explicitly guide when to use this tool versus siblings or provide when-not-to-use scenarios.

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/giuseppeferretti/sqlite-rag-mcp'

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