Skip to main content
Glama

List recent project history

list_history
Read-only

Lists a project's recent history entries, newest first, showing versions, times, authors, touched files, and labels. Use returned versions with diff_file to inspect changes.

Instructions

Lists recent versions from the project's History view, newest first: version range, time, authors, files touched, file additions/renames/removals and named labels. Use the versions with diff_file to see what changed.

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

Input Schema

NameRequiredDescriptionDefault
limitNoNumber of history entries to return (default: 20, newest first).
beforeNoReturn entries before this timestamp (ms), from `next_before` of a previous call, to page further back.
project_idNoOverleaf project id from list_projects or open_project. Opens the project if it is not already active. Pass it on every call when MCP sessions may change between calls. Writes without it only go to the project last confirmed by open_project or by a write naming it.
path_containsNoOnly entries that touched a file whose path contains this substring.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.2/5.0
Behavior3/5

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

readOnlyHint=true already declares the safety profile, and the description adds useful behavior by specifying newest-first ordering and the shape of each entry, which matters since there is no output schema. It stops short of covering pagination behavior or the project_id activation side effect (the latter only appears in the schema), so it is solid but not rich.

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?

Two sentences, no filler. The return contents are front-loaded and the follow-up action comes second, which matches how an agent would read it.

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 four-parameter read-only listing tool with no output schema, the definition covers purpose, ordering, returned fields, and the natural next step, which is close to complete. It omits the paging loop and the project_id session caveat, both of which live only in the schema.

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?

With schema coverage at 100%, the baseline is 3; the description slightly exceeds it by tying the newest-first ordering to the limit semantics and by framing versions as the input to diff_file. It adds no syntax or meaning for before, project_id, or path_contains 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 ('Lists recent versions from the project's History view') and enumerates the returned fields (version range, time, authors, files touched, renames, labels), which distinguishes it from content-reading siblings like read_file or list_files.

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

Usage Guidelines4/5

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

Gives a concrete workflow: fetch versions here, then feed them to diff_file to see what changed. It does not state exclusions or when to prefer read_log/list_tracked_changes, so it falls short of full when/when-not guidance.

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