Skip to main content
Glama
GeminiDesk MCP
by LZ7TOP

Git Commit History

git_log

Retrieve recent Git commit history from a specified repository, including hash, author, timestamp, and commit message, with a configurable result limit.

Instructions

查看 Git 仓库近期提交日志(哈希、作者、时间、提交信息)。

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
limitNo返回提交条数
repoPathNoGit 仓库路径

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the returned fields, which is genuinely useful, but says nothing about read-only safety, error behavior on an invalid path, result ordering, or how the default limit of 20 is applied.

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 well-formed sentence, front-loaded with the action and resource, with the return fields in a parenthetical. Nothing is wasted, though it is so terse that it omits guidance rather than being verbose.

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 simple two-parameter read tool with full schema coverage and no output schema, the description covers both what it does and what it returns. The main missing piece is behavior on invalid repository paths and how results are ordered/truncated by limit.

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% and both parameters (limit, repoPath) are documented in the schema, so the baseline is 3. The description only echoes 'recent commits', adding no extra meaning about how limit or repoPath interact with the result.

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 gives a specific verb plus resource ('查看 Git 仓库近期提交日志') and even enumerates the returned fields (hash, author, time, commit message), so an agent knows exactly what it gets. It does not differentiate itself from siblings like git_diff or git_status, which keeps it out of the top band.

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 explicit when-to-use guidance, no statement of when to prefer git_diff or git_status instead, and no prerequisites such as 'repoPath must be a valid repository'. Usage is only implied by the word '近期' (recent).

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