Skip to main content
Glama
backrest-mcp

backrest-mcp

by TadMSTR

list_snapshot_files

Browse files within a specific snapshot.

Instructions

Browse files within a specific snapshot.

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": {
      "repo_id": "<repo_id>",
      "snapshot_id": "<snapshot_id>"
    },
    "name": "list_snapshot_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoDirectory path within the snapshot to list. Defaults to root "/". Must be absolute; a '..' segment or an ASCII control character is refused./
repo_idYesThe repository ID (as shown by list_snapshots / get_config). It is resolved to the repo GUID that the Backrest ListSnapshotFiles API expects.
snapshot_idYesSnapshot ID to browse.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • changedInput schema / properties / path / description
      Previous value: -"Directory path within the snapshot to list. Defaults to root \"/\"."New value: +"Directory path within the snapshot to list. Defaults to root \"/\". Must be\n  absolute; a '..' segment or an ASCII control character is refused."
  2. First observedv0.3.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses almost nothing: it does not say whether the listing is recursive or single-level, whether it paginates or truncates large directories, how it behaves for a nonexistent path, or whether the operation is strictly read-only. "Browse" weakly implies a read, but that is the only behavioral signal.

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?

The single sentence is front-loaded, waste-free, and easy to parse. It is arguably under-sized rather than over-sized, but there is no redundant or filler wording to penalize.

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

Completeness3/5

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

An output schema exists and the input schema is fully documented, which covers return values and parameter meaning, and the tool is a simple three-parameter read. However, with no annotations at all, the description leaves behavioral questions (recursion depth, pagination, error cases) unanswered, so it is only minimally complete for a tool with zero structured behavioral metadata.

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 three parameters are already documented in the schema, including the absolute-path and '..' refusal rule for path and the repo_id-to-GUID resolution note. The description adds nothing beyond the schema, so the baseline of 3 applies.

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 pairs a clear verb ("Browse") with a specific resource ("files within a specific snapshot"), which an agent can distinguish from sibling list_snapshots (which lists snapshots rather than their contents). It stops short of naming or contrasting any sibling explicitly, so it is clear but not differentiated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites (e.g., needing a repo_id/snapshot_id obtained from list_snapshots), and no mention of alternatives such as get_download_url for retrieving rather than listing. Usage is only inferable from the tool name and the single sentence.

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