Skip to main content
Glama

search_docs

Semantically search indexed project documentation, design decisions, API references, and code examples to answer architecture, convention, or implementation questions without asking users for files.

Instructions

Search the project knowledge base for relevant documentation, design decisions, API references, and code examples.

Use this when the user asks about project architecture, conventions, or implementation details instead of asking them to provide files. Searches the .skb/ indexed documents semantically.

Input:

  • query: what to search for

  • n_results: how many results (default 5)

  • project: which project (defaults to current)

  • search_all_projects: set True to search across all indexed projects

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

Input Schema

NameRequiredDescriptionDefault
queryYes
projectNo
n_resultsNo
search_all_projectsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose the retrieval mechanism (semantic search over the .skb/ index) and the project-scoping default, which is useful context. However, it says nothing about what a result looks like, whether results are ranked or scored, pagination/limits behavior, or failure modes when a project is not indexed.

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?

Well front-loaded: purpose first, then when-to-use, then a compact parameter list. There is minor redundancy in restating schema defaults such as n_results=5, but no sentence is wasted or buried.

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?

For a read-only semantic search with no output schema, the description covers intent and inputs but leaves the return shape, result ranking, and empty/error behavior entirely unstated. It is adequate to invoke the tool correctly but not complete enough to interpret what comes back.

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%, so the description must compensate, and it does document all four parameters in the Input block, including that project defaults to current and search_all_projects spans all indexed projects. But the content is thin and largely restates schema defaults, and the interaction between project and search_all_projects (which wins if both are set) is never explained.

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 opening sentence gives a specific verb and resource ('Search the project knowledge base') and enumerates the content types returned: documentation, design decisions, API references, code examples. That implicitly separates it from search_code, but it never names or contrasts the sibling, so an agent must infer the boundary rather than read it.

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

Usage Guidelines4/5

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

The second sentence is genuine usage guidance: use it when the user asks about architecture, conventions, or implementation details 'instead of asking them to provide files.' That states a clear trigger condition. It stops short of the 5-level bar because no alternative tool is named and there are no exclusion conditions (e.g., when to prefer search_code or list_documents).

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