Skip to main content
Glama

knowledge_search

Search a knowledge base by query and return matching results, with options for metadata filtering, result count, and inclusion of metadata or scores.

Instructions

Search a knowledge base

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": {
      "knowledge_id": "<knowledge_id>",
      "query": "<query>"
    },
    "name": "knowledge_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query
top_kNoNumber of results
filter_jsonNoJSON for metadata filtering
knowledge_idYesKnowledge base ID or key
search_options_jsonNoJSON: {include_metadata, include_scores}

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and delivers almost none of it. It does not state that this is a read-only operation, whether results are ranked or paginated, how top_k is defaulted or capped, or what a filter_json failure does — all material for a search call.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is technically concise with no wasted words, but it is under-specified rather than efficient. It front-loads nothing useful because there is nothing to front-load.

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

Completeness1/5

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

A five-parameter search tool with no annotations and no output schema depends entirely on the description to convey behavior, and four words cannot cover it. An agent cannot tell what comes back, how many results arrive by default, or how this differs from the sibling retrieval tools.

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 100%, so every one of the five parameters is already documented in the schema; the description adds no meaning beyond it. Baseline 3 applies when the schema does the work, and here the description contributes nothing extra (e.g., no filter_json syntax or search_options keys).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a verb and a resource ("Search a knowledge base"), so the basic action is identifiable. But it is indistinguishable from neighbors such as knowledge_retrieve and knowledge_list_chunks, and it never says whether this returns ranked passages, whole documents, or metadata hits.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: no indication of how this differs from knowledge_retrieve, knowledge_list_chunks, or knowledge_get_chunks_count, and no prerequisites such as a populated knowledge base. The agent must guess from the name alone.

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

Deploy Server

Other Tools