Skip to main content
Glama

Read the project's history

read_history
Read-only

Reads a project's Git history to list commits, show diffs, or blame lines, so you can find who changed a file, when it changed, and which revision hash to restore or diff.

Instructions

Read the history Overleaf's Git bridge has recorded for a project, plus anything pushed from here; view picks what. commits, the default, lists commits newest first, with date, author, message and the files each one changed. Use it to find out who changed a file and when, or to find a revision for read_file, manage_files (action restore) or the diff view, which take the short hash it prints. diff shows what changed from fromRevision to toRevision, or to Overleaf's latest fetched version when toRevision is omitted; read_project (view changes) shows local edits not yet pushed instead. path narrows commits and diff to one file or directory. blame lists each line of the file at path, or of startLine to endLine, after the short hash, date and author of the commit that last changed it, then those commits with their messages; a line edited here and not committed yet is marked not committed yet. Blame follows the file through renames and refuses a binary file or one that has no commit yet. commits and blame pull from Overleaf first, so the newest commits are included, and fail, keeping local work, if that pull conflicts with it; diff does not pull and compares against Overleaf as last fetched. A diff missing fromRevision, a blame missing path, or a revision that is not a commit hash, is refused before Git runs. Returns at most limit commits, so narrow with path, since and until rather than raising limit far; a diff or blame is cut off after 60,000 characters, so blame a long file in line ranges.

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

Input Schema

NameRequiredDescriptionDefault
pathNocommits and diff: only this file or directory, relative to the project root; omit for the whole project. blame, required: the file to blame.
viewNoWhat to read (default "commits"): commits (the log, newest first), diff (what changed between two revisions) or blame (who last changed each line of one file).commits
limitNocommits view only: most commits to return, 1 to 200 (default 20).
sinceNocommits view only: commits on or after this date, for example 2026-11-01 or 2 weeks ago.
untilNocommits view only: commits on or before this date, in the same forms as since.
endLineNoblame view only: last line to blame, inclusive. Omit to blame to the end; a value past the end stops there.
projectNoWhich project to use: its Overleaf address, its 24-character id, or a registered project name. Omit to use the default project.
startLineNoblame view only: first line to blame, 1-indexed. Omit to start at line 1.
toRevisionNodiff view only: the commit hash to compare to. Omit for Overleaf's latest fetched version.
fromRevisionNodiff view, required: the commit hash to compare from, as the commits view prints it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare readOnly and openWorld, so the description carries most of the burden and does so well: commits and blame pull from Overleaf first and fail while keeping local work on conflict, diff does not pull, invalid inputs are rejected before Git runs, blame refuses binary or uncommitted files, and output is truncated at 60,000 characters. The one thing left implicit is whether a failed pull leaves any state behind beyond local work, which is a minor gap against an otherwise rich disclosure.

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?

It is front-loaded and nearly every clause carries information, but it is delivered as a single dense paragraph with long run-on sentences that mix purpose, per-view behavior, error handling and limits together. Restructuring into per-view lines would make the same content far easier to scan.

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 10-parameter tool with no output schema, the description still says what each view returns (commit fields, diff endpoints, blame line format with hash/date/author) and covers the failure and truncation modes. Nothing an agent needs in order to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds cross-parameter meaning the schema doesn't: narrow with path/since/until rather than raising limit far, and blame a long file in line ranges because of the 60,000-character cutoff. The rest of the parameter text largely restates the schema's own descriptions.

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?

Opens with a specific verb and resource ("Read the history Overleaf's Git bridge has recorded for a project") and then defines all three views (commits, diff, blame) by their output. It also explicitly separates itself from read_project's changes view, so an agent can pick between them without opening either schema.

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?

Gives concrete when-to-use guidance for each view ("Use it to find out who changed a file and when, or to find a revision for read_file, manage_files (action restore) or the diff view") and names the alternative for the neighboring case (read_project view changes for local edits not yet pushed). Exclusions and hand-offs are both stated.

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