Skip to main content
Glama

commit_search

Search Git commit history by message, author, path, date range, or changed content; combine filters to pinpoint specific commits.

Instructions

Find commits. All filters are case-insensitive literals and combine with AND: query (in the message), author (name or email substring), path (file or directory), since/until (git dates), content (text added or removed by the commit, git's pickaxe -S). At least one filter is required. limit is capped at 200.

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

Input Schema

NameRequiredDescriptionDefault
refNoHEAD
pathNo
repoNo
limitNo
queryNo
sinceNo
untilNo
authorNo
contentNo
include_mergesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that filters are case-insensitive literal matching, that they combine with AND, that at least one is mandatory, and that limit is capped at 200. It does not state that this is a read-only operation, nor does it mention pagination or ordering of results, which are the main remaining gaps.

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 purpose is front-loaded in two words, followed by a compact clause that defines every documented filter and ends with the hard constraints. There is no filler, and each sentence earns its place by adding either filter semantics or a calling constraint.

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 strong on the search filters but silent on ref, repo, and include_merges, which matter for a 10-parameter tool with zero schema coverage and no annotations. Because an output schema exists, the absence of return-value explanation is acceptable, but the undocumented parameters leave the definition partially incomplete.

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

Parameters4/5

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

Schema description coverage is 0% across 10 parameters, so the description must compensate, and it does for seven of them: query (message), author (name or email substring), path (file or directory), since/until (git date syntax), content (git pickaxe -S), and limit (200 cap). It adds real meaning beyond bare titles. It says nothing about ref, repo, or include_merges, leaving three parameters undocumented in both places.

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?

"Find commits" gives a specific verb and resource, and the following clauses name the exact filter dimensions (message, author, path, dates, content). An agent can distinguish it from siblings like file_history or churn_timeline because the description frames it as an AND-combined multi-filter search rather than a per-file or per-window view. It stops short of naming an explicit alternative, which keeps it just under a 5.

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 constraint "At least one filter is required" is genuine usage guidance and prevents an empty call, and the AND-combination rule tells the agent how filters interact. However, there is no statement of when to prefer this tool over the sibling analysis tools, and no exclusion guidance for cases where a different tool is better.

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