Skip to main content
Glama

git_blame

Show blame information for a file to identify which commit and author last changed each line, helping trace code history and ownership.

Instructions

Git blame — show blame info for a file.

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

Input Schema

NameRequiredDescriptionDefault
commitNoStarting commit (default: HEAD).
file_pathNoFile to blame.
repo_pathNoRepository path (default: current directory).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

C2.9/5.0
Behavior2/5

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

Annotations are empty, so the description carries the full behavioral burden and adds almost nothing: it does not state that the operation is read-only, that it requires the target to be a tracked file, or that output is scoped to a single file rather than a whole-repo history. The 'show' verb weakly implies a read, but nothing is explicitly disclosed.

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 front-loaded sentence with no filler or repetition. It is efficient, though it is arguably trimmed to the point where a clause of behavioral context could have been added at no structural cost.

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 tool is simple (three optional, defaulted parameters), the schema is fully documented, and an output schema exists, so return-value explanation is not needed. What is missing is the behavioral framing an agent would want before calling: that this is a read-only inspection and that it operates on one file in a repository context.

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%, including defaults for commit, file_path, and repo_path, so the schema already does the parameter work. The description mentions only 'a file' and adds no format details (e.g., ref syntax, relative vs absolute paths) beyond what the schema states, which lands at the baseline of 3.

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?

"show blame info for a file" gives a recognizable verb+resource pair, and git blame is a well-understood operation, so an agent can tell what it does. However, it makes no attempt to differentiate from the broad sibling tools (git_core, git_admin, git_branch), so it stops short of 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: no statement about preferring this over git_core for per-line authorship, no prerequisites, and no mention of what to do when the file is untracked or has uncommitted changes. The only usage signal is implicit in the word "blame" itself, which is thin for an agent choosing among eleven siblings.

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