Skip to main content
Glama

kb.search

Search project documentation and source files with full-text queries to locate relevant code and references in a workspace.

Instructions

Full-text search across project docs and source files in the workspace.

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
pathNoRelative root to search (default: workspace root).
limitNo
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It says only that this is a full-text search over docs and source files; it does not disclose result ordering, case sensitivity, permissions, rate limits, or whether the operation is read-only. These omissions matter for an agent deciding whether and how to call it.

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 a single front-loaded sentence with no filler or repetition. It states the search type and corpus immediately, which is efficient for a short tool definition.

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

Completeness2/5

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

This is a three-parameter search tool with no annotations and no output schema, so the description needs to do more work. It does not explain query syntax, limit behavior, result format, or how path scoping interacts with the workspace root. The definition is too sparse for reliable invocation.

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

Parameters2/5

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

Schema description coverage is only 33%, with just the 'path' parameter documented in the schema. The description does not explain query syntax or what 'limit' controls beyond the schema's default and bounds. 'Full-text search' gives a weak hint about the required query parameter but does not compensate for the low coverage.

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?

The description gives a specific verb and resource: 'Full-text search across project docs and source files in the workspace.' It clearly establishes the corpus being searched. However, it does not differentiate this from sibling tools such as skill.search, leaving the agent to infer the boundary.

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 stated scope implies when the tool is useful: searching text within project documentation and source files. There is no explicit guidance on when to choose it over skill.search or workspace.list, and no prerequisites or exclusions are mentioned.

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