Skip to main content
Glama
zongzi-zongzhi

local-Rag

query_documents

Retrieve relevant documents from your local knowledge base by combining exact keyword matching with semantic search. Results include relevance scores for ranking.

Instructions

Search ingested documents. Your query words are matched exactly (keyword search). Your query meaning is matched semantically (vector search). Preserve specific terms from the user. Add context if the query is ambiguous. Results include score (0 = most relevant, higher = less relevant).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query. Include specific terms and add context if needed.
limitNoMaximum number of results to return (default: 10, range: 1-20). Recommended: 5 for precision, 10 for balance, 20 for broad exploration.
Behavior5/5

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

In the absence of annotations, the description fully discloses behavioral traits: exact keyword matching, semantic vector search, and score interpretation (0 = most relevant). It also advises on query refinement, leaving no ambiguity about how the tool operates.

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 three sentences long, front-loading the primary purpose, then efficiently explaining the search mechanism and result scoring. Every sentence adds value; no extraneous content.

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?

The description covers essential aspects: what the tool does, how it searches, and result scoring. With no output schema, it could mention potential response structure but is still sufficiently complete for a search tool with limited parameters.

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 100%, providing detailed descriptions for both query and limit. The tool description echoes the schema's guidance on query but adds no new parameter-specific information. Thus, it meets the baseline but does not exceed it.

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 opens with 'Search ingested documents', clearly stating the tool's purpose. It distinguishes itself from siblings like delete_file and ingest_data by focusing on searching. The additional detail about keyword and vector search further clarifies its functionality.

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 gives implicit guidance on query formulation (preserve specific terms, add context) but does not explicitly state when to use this tool versus alternatives, nor does it provide when-not-to-use scenarios. With sibling tools listed but not referenced, the guidance is adequate but not comprehensive.

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/zongzi-zongzhi/local-Rag'

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