Skip to main content
Glama
gitmem-dev

GitMem

Official
by gitmem-dev

search_docs

Find relevant documentation chunks from a repository by searching indexed docs with semantic or keyword search. Returns results with file paths for direct reading.

Instructions

Search indexed repository documentation using semantic similarity (pro/dev tier) or BM25 keyword search (free tier). Returns relevant chunks with file paths for targeted reading. Index docs first with index_docs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesNatural language search query (e.g., 'how does authentication work', 'database schema')
projectNoProject namespace (e.g., 'my-project'). Scopes sessions and searches.
categoryNoFilter results to a specific category (directory name, e.g., 'architecture', 'research')
match_countNoMaximum number of results to return (default: 5)
Behavior4/5

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

With no annotations provided, the description discloses two search mechanisms, the return format (chunks with file paths), and a prerequisite. It does not mention rate limits or authorization but covers the essential behavioral aspects for a search tool.

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 two focused sentences: first describes core functionality with tier differentiation, second mentions return type and prerequisite. No extraneous information, every word serves a purpose.

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?

The description covers the tier-based search methods, return format, and prerequisite. It does not elaborate on the differences between semantic and BM25 search beyond tier association, but overall it provides sufficient context for the tool's use.

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 coverage is 100%, and the schema descriptions are detailed. The description adds examples for 'query' and context for 'project' and 'category', but does not significantly enhance understanding beyond the schema.

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?

The description clearly states the tool searches indexed documentation using two methods (semantic similarity and BM25 keyword search), and mentions it returns relevant chunks with file paths. It distinguishes from sibling tools like 'index_docs' and 'search'.

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 description provides a clear prerequisite ('Index docs first with index_docs') and differentiates search methods by tier. However, it does not explicitly state when not to use this tool or compare it with alternative search tools among siblings.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gitmem-dev/gitmem'

If you have feedback or need assistance with the MCP directory API, please join our Discord server