Skip to main content
Glama

Commit log

git_log
Read-onlyIdempotent

Lists commits filtered by path, author, date range, ref or message text; set follow=true on a single file to track renames across history.

Instructions

List commits, optionally filtered by path, author, date range or message text. Use follow=true with a single file to track renames.

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_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoBranch, tag or revision range (default HEAD), e.g. main, v1.0..v2.0.
grepNoFixed string to find in commit messages.
pathNo
repoNoPath to the repository (or a folder inside it). Defaults to the first allowed root.
limitNo
sinceNoe.g. "2 weeks ago" or "2026-01-01".
untilNo
authorNo
followNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so safety and repeatability are covered without the description. The description adds only the rename-tracking nuance of follow; it says nothing about ordering of results, how the default limit of 30 caps output, or whether history is walked from HEAD backwards, which is exactly the extra context an agent would need.

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?

Two tight sentences, with the core operation and its filter axes front-loaded before the follow=true caveat. There is no filler, though the second sentence assumes the reader knows what 'follow' means before the schema is read.

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?

For a nine-parameter read-only listing tool with no output schema, the description covers the operation and the filter surface adequately, and annotations supply the safety profile. The gaps that remain (result ordering, truncation to limit, meaning of path vs. repo) are real but narrow.

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 44%, with path, until, author and limit carrying no schema description at all. The description names the four filter axes at a high level, partially compensating, but adds no matching semantics (does author accept an email or a substring?), no interaction note for since/until, and nothing about the limit cap or default.

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 ("List commits") plus the dimensions it can be filtered on (path, author, date range, message text), which lets an agent distinguish it from git_show or git_diff. It stops short of explicitly naming those siblings or saying what it does not cover.

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?

One concrete usage rule is given: follow=true paired with a single file to track renames. Beyond that, the 'optionally filtered by...' clause only implies when filtering is appropriate; there is no statement of when to prefer git_show or git_diff, nor any prerequisite (e.g. repo scope) guidance.

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

Deploy Server

Other Tools