Skip to main content
Glama

doc_blame

Read-only

Reveal which commit, author, and date last changed each line of a document at its current version; filter by text or line range to trace exact facts.

Instructions

Show which commit, author and date last changed each line of a document, at its current version: who wrote this exact fact. Two filters, which combine: pattern keeps the lines containing a text (no line numbers needed), start/end blame a line range only. With neither, the first 600 lines come back and truncated is true when the doc is longer: pass a pattern or a range to reach the rest. Use doc_history for the doc's revisions, search_history for when a text first appeared.

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": "doc_blame"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoLast line (omit: to the end).
pathYesPath of the doc, blamed at its current version.
startNoFirst line, 1-based.
patternNoOnly the lines containing this (case-insensitive).

Output Schema

NameRequiredDescriptionDefault
pathYes
linesYes
truncatedYes
untrustedNoSet when the text was written outside this mind: remote:<node> or inbox:<source>.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.8.0
    • changedInput schema / properties / path / description
      Previous value: -"The doc, blamed at its current version."New value: +"Path of the doc, blamed at its current version."
  2. First observedv2.7.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description adds the non-obvious default window (600 lines) and the 'truncated' signal, plus the remedy of passing a pattern or range. It does not discuss permissions or cost, but the truncation disclosure is exactly the kind of behavior that matters here.

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?

Front-loaded with purpose, then filters, then defaults, then sibling routing — a logical order with no filler sentences. It is dense and slightly clause-heavy in the second sentence, but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only, four-parameter lookup with an output schema, the description covers purpose, filter interaction, default/truncation behavior, and alternatives to siblings. The existence of an output schema removes any obligation to describe return values, so nothing essential is missing.

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%, so all four parameters are already documented, establishing a baseline of 3. The description adds genuine meaning about interaction ('pattern keeps the lines containing a text (no line numbers needed)', filters 'combine'), but does not specify precedence or syntax beyond the schema.

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

Purpose5/5

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

States a specific verb and resource ('Show which commit, author and date last changed each line of a document') and pins the version semantics ('at its current version'), with a plain-language gloss ('who wrote this exact fact'). It is clearly distinguishable from doc_history and search_history, which it names.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly explains how the two filters combine ('which combine'), what each selects, and what happens with neither (first 600 lines). It also routes the agent away to alternatives: 'Use doc_history for the doc's revisions, search_history for when a text first appeared.'

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