Skip to main content
Glama

history

Retrieves a bounded Git commit timeline and optional blame for a file or line, avoiding full patch output ingestion.

Instructions

Git archaeology for a file or line: returns bounded log timeline and optional blame without making Codex ingest git log -p.

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": {
      "file": "<file>"
    },
    "name": "history"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNo
fileYes
lineNo
max_commitsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.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 carries the full burden. It usefully discloses the bounded/truncated nature of the output and the optional blame mode, but says nothing about read-only safety, permission requirements, behavior on untracked files or non-repo cwd, or how bounds are enforced when the timeline is cut.

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

Conciseness5/5

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

A single dense sentence, front-loaded with the core verb and resource, that packs scope, return shape, and the rationale for the tool's existence without a wasted word.

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?

For a four-parameter tool with no annotations and no output schema, the description covers the headline behavior and rough return shape but leaves cwd, default bounds, error conditions, and the read-only guarantee unaddressed, which an agent would need to call it confidently.

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 0%, so the description must compensate and only partly does: it clarifies that 'file' scopes the query, 'line' enables blame, and 'bounded' implies max_commits caps the timeline. The 'cwd' parameter and the default/limit semantics of max_commits are left entirely undocumented.

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?

Names a specific resource and operation: git history for a file or line, returning a bounded log timeline plus optional blame. The phrase 'without making Codex ingest git log -p' implicitly distinguishes it from the generic shell sibling, though it never names that alternative directly.

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?

The description implies when to reach for it (you want commit history for a specific file/line without dumping full patches), but gives no explicit when-not conditions, no prerequisites (e.g. must be inside a git repo), and does not name a sibling to use instead for repo-wide or non-file-scoped history.

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