Skip to main content
Glama

knowledge_search

Read-onlyIdempotent

Search indexed documents locally via lexical retrieval with exact source file and chunk citations. Results come from encrypted device memory, not a cloud vector index. Caller AI may perform semantic reasoning over returned passages. Supports project filtering and pagination.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
offsetNo
projectNo
device_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, closed-world, and non-destructive, so the safety bar is met structurally. The description adds genuinely useful context beyond them: the retrieval is lexical rather than semantic, results are drawn from local encrypted storage, citations are exact per file and chunk, and the caller must do its own semantic ranking.

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?

Four short sentences, front-loaded with the core action and retrieval mechanism, with the storage-location and semantic-reasoning caveats after. Nothing is padding, though the cloud-vector-index contrast could be folded into the opening clause.

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

Completeness3/5

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

With no output schema, the description helpfully characterizes the return shape as passages with exact file and chunk citations, which is what an agent needs. However, for a five-parameter tool with zero schema descriptions, leaving device_id and query syntax unexplained is a real gap.

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 description coverage is 0% across five parameters, so the description carries the burden. It gives meaning to project (filtering), limit/offset (pagination), and indirectly to query (lexical, not natural-language semantic), but says nothing about device_id or what a lexical query string should look like.

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 indexed documents locally via lexical retrieval") plus the distinguishing outputs (source file and chunk citations). It differentiates itself conceptually from a cloud vector index, but never names a sibling such as memory_search or memory_smart_search, so an agent must infer which search tool 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 Guidelines3/5

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

The lexical-vs-vector framing and "results come from encrypted device memory" implicitly signal when this local keyword search is appropriate, and "caller AI may perform semantic reasoning over returned passages" hints at the intended division of labor. There is no explicit when-to-use statement, no exclusions, and no routing to get_more_search_results or memory_search.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources