Skip to main content
Glama

git_search_commits

Search recent Git commit history by keyword to locate relevant changes in a repository. Filter commit messages case-insensitively and limit returned results.

Instructions

Search recent Git commit history by keyword.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "git_search_commits"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoRepository path.
limitNoMax commits to return (1-50, default 15).
queryNoCase-insensitive commit message search query.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure and mostly fails it. It implies a read-only search, but never states which commit fields the keyword matches (message only, or author, hash, and diff too), whether results are sorted newest-first, or that 'recent' history is bounded by the limit parameter. The distinction between the case-insensitive schema description and the 'recent' scoping claim is left unresolved.

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?

A single front-loaded sentence with zero padding or redundant phrasing. Its brevity is appropriate in form, though the content is thin rather than dense; nothing in the sentence is wasted.

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?

The tool is simple and schema coverage is high, but there is no output schema, so the description should say what a commit result contains (hash, author, message, date) and in what order. Neither is stated, and the meaning of the keyword search scope is not addressed, leaving the agent guessing about the return payload.

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 100%, so cwd, limit (1-50, default 15) and the case-insensitive query are fully documented in the schema; the baseline is 3. The description adds no meaning beyond it, other than hinting that the limit controls recency scoping. No syntax, default, or edge-case information is added.

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?

States a specific verb and resource: 'Search recent Git commit history by keyword.' An agent can immediately tell this retrieves commits, and none of the siblings (risk summary, file hotspots, lint commit message) do keyword search. It stops short of an explicit sibling differentiation, but the operation is unambiguous.

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 when-to-use or when-not-to-use guidance. The description never mentions when searching commits is preferable to the sibling analysis tools, and it does not say what happens when no keyword is supplied (all 3 parameters are optional). Usage must be inferred entirely from the name and the phrase 'recent history'.

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