Skip to main content
Glama
Project Scope MCP Server

Project Scope MCP Server

git_commit_history

Retrieve and filter Git commit history by file, author, or date range to trace code changes and identify when bugs were introduced.

Instructions

View commit history with powerful filtering (by file, author, or date range). Returns structured data including commit hashes, timestamps, and messages. Use to understand code evolution or trace when bugs were introduced.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "git_commit_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesRoot path of the git repository
sinceNoOptional: show commits since date (e.g., '2024-01-01', '2 weeks ago')
untilNoOptional: show commits until date
authorNoOptional: filter commits by author name
filePathNoOptional: filter commits by specific file path
maxCountNoMaximum number of commits to retrieve (default: 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the return shape ('commit hashes, timestamps, and messages') and implicitly signals a read-only operation via 'View', which is useful. It omits ordering (newest vs oldest first), what happens with an invalid path, and any performance/pagination behavior when maxCount is raised.

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?

Three sentences, front-loaded with the core action and filtering capability, then return data, then use case. Little waste, though 'powerful' is a filler adjective that earns nothing and could be dropped without loss.

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 six-parameter read tool with a fully documented schema, the description covers what it does, how to filter, and roughly what comes back, which is enough to call it correctly. The remaining gap is result ordering and default-limit behavior, minor for a history listing tool with no output schema.

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 100%, so every parameter already has its own description and the baseline is 3. The description's mention of 'by file, author, or date range' maps to filePath, author, and since/until but adds no format or interaction detail beyond what the schema already supplies (e.g., the '2 weeks ago' example is in the schema).

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 concrete verb and resource: 'View commit history', and names the filtering dimensions (file, author, date range). This distinguishes it from siblings like git_show_changes or git_status, which deal with current working state rather than history. It stops short of explicitly contrasting with those siblings, which keeps it at 4 rather than 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?

'Use to understand code evolution or trace when bugs were introduced' gives a positive use case, so usage is implied clearly. However, there is no when-not guidance, no mention of the sibling best suited for diffs (git_show_changes) or branch comparison, and no prerequisites such as the path needing to be a real git repository.

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