Skip to main content
Glama

file_versions

Fetches a file's version history by adapter path, listing available versions and metadata so you can restore an earlier version when needed.

Instructions

A file's version history: {versions: [{id, size, created_at, …}], node}. Restore one with file_version_restore.

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

Input Schema

NameRequiredDescriptionDefault
pathYesadapter://path

Output Schema

NameRequiredDescriptionDefault
resultYesthe operation's JSON answer - the body its REST twin under /api/ai answers (an object)
statusYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden, and it partially does so by showing the response shape (versions with id, size, created_at, plus node), which implies a read-only, non-destructive call. It says nothing about ordering, pagination, retention limits, or behavior when a file has no versions, which are the traits an agent would still need.

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?

Two compact sentences with the resource and return shape front-loaded and the sibling routing second; nothing is padded. The ellipsis in the shape sketch is slightly informal but does not obscure meaning.

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?

An output schema exists, so the description is not required to explain return values, and for a one-parameter read tool the purpose and the restore alternative are sufficient to call it correctly. Missing only ordering/pagination expectations, which are minor at this complexity.

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?

With a single parameter and 100% schema description coverage ('adapter://path'), the schema already does the work and the description adds nothing about the path format or scoping. Baseline 3 applies when structured fields fully document the inputs.

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?

The description names the specific resource (a file's version history) and sketches the returned shape, and it explicitly points at the sibling file_version_restore for the mutating counterpart, so an agent can tell the two apart. It stops short of a leading verb phrase like 'Get/List', which keeps it from being maximally crisp.

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?

It gives a clear conditional pointer: if you want to restore one, use file_version_restore instead. That routes the agent away from the wrong tool. There is no explicit statement of when this tool itself is the right call beyond 'you want version history', and no exclusions for missing/unsupported files.

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