Skip to main content
Glama

kb_search

Read-onlyIdempotent

Exact-text lookup in your team's knowledge base: every file and line containing these words (a commit id, a path, an error message, a command). For ordinary questions use kb_find.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax files to return (default 20, max 50)
queryYesWords to search for

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / query / description
      Previous value: -"Text to search for"New value: +"Words to search for"
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds genuinely new behavioral content beyond that: matching is literal rather than semantic, and hits are reported per file and line rather than as ranked documents. It stops short of stating result ordering or how multiple matches within one file are presented, which keeps it below a 5.

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?

Two sentences, zero filler. The core semantics (exact-text, file-and-line granularity) are front-loaded and the routing rule to kb_find closes it out.

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?

There is no output schema, yet the description tells the agent what comes back at a useful granularity: every file and line containing the words. With limit documented in the schema and safety in annotations, the only remaining gaps are result ordering and case-sensitivity behavior, which are minor for a lookup tool.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: 'query' is literal text scanned verbatim ('containing these words'), implying no regex, boolean, or natural-language interpretation. It says nothing extra about 'limit' beyond what the schema already documents (default 20, max 50).

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?

States a specific verb and resource ('Exact-text lookup in your team's knowledge base') and immediately defines the match semantics: 'every file and line containing these words'. The parenthetical examples (commit id, path, error message, command) make the resource concrete, and the closing sentence names the sibling it is not (kb_find), so an agent can disambiguate without opening either schema.

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

Usage Guidelines5/5

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

Provides both a when-to-use rule (literal artifacts: commit ids, paths, error strings, commands) and an explicit when-not rule with the named alternative: 'For ordinary questions use kb_find.' No inference about routing is left to the agent.

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