Skip to main content
Glama

List file versions

files_history
Read-onlyIdempotent

List the saved previous versions of ONE file, newest first. Use it when a change broke something, when the user asks to undo or go back, or before overwriting a file you did not write yourself - then pass a versionId to files.restore. It only covers changes made through this API (write, edit, editMany, rename, delete): edits made over SFTP or by the running app itself are not tracked, and an empty list means there is nothing to undo.

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": {
      "id": "<id>",
      "path": "<path>"
    },
    "name": "files_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
pathYesThe file to look up, volume-root relative, e.g. '/index.js'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds context annotations cannot express: coverage is limited to writes through this API (write, edit, editMany, rename, delete) and excludes SFTP or app-side edits, and an empty list means nothing to undo. That exclusion is the single most decision-relevant fact here; only the return-entry shape is left implicit.

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?

Three sentences, front-loaded with the action and ordering, then triggers, then the coverage caveat. No restatement of the title and no filler; the caveat sentence is long but each clause (what is tracked, what is not, empty-list meaning) carries distinct information.

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 two-parameter read-only list with no output schema, the description covers purpose, triggers, coverage limits and the restore handoff. It stops short of describing what a version entry contains beyond the versionId needed for files.restore and the newest-first ordering, which is the only remaining omission.

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 50%: 'path' is documented inline as volume-root relative with an example, but 'id' has no description in either the schema or the description. The description reinforces that the pair targets a single file, but it never explains what 'id' identifies, which is a real gap for a required parameter.

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 ('List the saved previous versions of ONE file') plus the ordering ('newest first'), and the 'ONE file' emphasis distinguishes it from bulk listing siblings like files_list or backups_list. An agent can identify the tool without opening the 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 three concrete trigger conditions (a change broke something, the user wants to undo, before overwriting a file you did not write) and names the follow-up action, passing a versionId to files.restore. This is explicit when-to-use plus the correct next tool, leaving little to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources