Skip to main content
Glama

commit_search

Search commit messages and bodies by keyword to find when and why code changes occurred.

Instructions

Full-text search over historical commit subjects and bodies — find when/why something changed by keyword.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYes
explainNo
includeNoWhat to include: `git`, `papertrail` (both on by default), `generated`, `fallback` (off by default). Omit to keep defaults; an explicit list is the exact on-set.
worktreeNoAbsolute path of the checkout to scope reads to — pass a linked worktree to read its branch overlay. Defaults to the server's working directory. A path that is not a linked worktree of this repo is silently ignored: results then come from the indexed checkout, with no error.
graph_limitNo
include_graphNocompact
Behavior3/5

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

With no annotations, the description carries the transparency burden. 'Full-text search' strongly implies a read-only operation, and 'historical commit subjects and bodies' clarifies scope, but the description does not disclose ordering, result shape, limitations, or behavior around options like include and worktree. It is minimally transparent but not rich.

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 concise sentences with the main verb and object front-loaded. Every word contributes to clarifying the tool's purpose, and there is no filler or repetition.

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?

The description is adequate for core invocation since query is the only required parameter and the rest have defaults. However, with seven parameters, no output schema, no annotations, and low schema coverage, the description leaves several behavioral and selection-relevant details unexplained, especially relative to many sibling search and commit-related tools.

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 29%, and the description only adds meaning for the query parameter by framing it as a keyword. It does not help with limit, explain, include, worktree, graph_limit, or include_graph, all of which require inference from names or schema defaults.

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 clearly identifies the action as full-text search over historical commit subjects and bodies and ties it to the use case 'find when/why something changed by keyword.' It is specific about resource and scope, though it does not explicitly contrast with sibling search tools like semantic_search or rationale_search.

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 guidance on when to use this tool versus alternatives such as semantic_search, rationale_search, commits_touching_query, or git_history_for_path. The phrase 'find when/why something changed by keyword' implies a use case, but no exclusions or alternative recommendations are provided.

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/cq27-dev/rag-rat'

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