Skip to main content
Glama

Git History Tools

git_history
Read-onlyIdempotent

Inspect Git commit history, refs, and contributors with log, show, reflog, blame, lg, and who actions to trace changes, file history, and authorship.

Instructions

History tool. Use action=log|show|reflog|blame|lg|who to inspect commits, refs, and contributors.

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

Input Schema

NameRequiredDescriptionDefault
refNo
grepNo
limitNo
orderNodefault
sinceNo
untilNo
actionNolog
authorNo
offsetNo
file_pathNo
no_mergesNo
pathspecsNo
repo_pathNoAbsolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument.
all_branchesNo
first_parentNo
revision_rangeNo
response_formatNoOutput format for the response.markdown
simplify_mergesNo

Output Schema

NameRequiredDescriptionDefault
refNo
outputNo
commitsNo
file_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds nothing beyond that: it does not say what each action returns, how pagination (limit/offset) behaves, whether grep/ref filters apply to all actions, or that repo_path falls back to a server default. With annotations carrying the safety burden, this is still thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with no filler, and the dispatch hint (action=...) is front-loaded. However, brevity here is under-specification rather than economy: the second sentence is essentially a verbatim echo of the schema enum and consumes the only space available for real guidance.

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?

For an 18-parameter, multi-action dispatcher, the description is materially incomplete: it does not map which parameters matter for which action, does not explain filtering or ordering semantics, and does not mention the repo default fallback. The output schema covers return shape, so omission of return values is acceptable, but the action/parameter mapping gap is not.

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 11% across 18 parameters, so the description should compensate, and it does not. It restates the action enum that is already in the schema and says nothing about ref, revision_range, grep, pathspecs, no_merges, order, or how limit/offset interact. Parameters that only apply to certain actions (e.g. file_path for blame, author for who) are left for the agent to infer.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a domain ('History tool') and a broad intent ('inspect commits, refs, and contributors'), which is enough to know it is read-only history inspection. But it never distinguishes itself from plausible siblings like git_commits or git_analytics, and the six action names are listed without saying what each does. Purpose is implied rather than pinned down.

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?

It enumerates the action values but gives no guidance on which action to choose, no when-not-to-use, and no pointer to alternative tools for commit listing or analytics. An agent must guess which of log/show/reflog/blame/lg/who fits its goal.

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