Skip to main content
Glama

List Restic Snapshot Files

hestia_list_restic_files
Read-onlyIdempotent

Lists files and directories inside a HestiaCP user's Restic backup snapshot, with optional snapshot ID and folder filters, to locate paths for restore or inspection.

Instructions

List files and directories inside a user Restic incremental backup snapshot via v-list-user-files-restic. Use when locating paths inside a known Restic snapshot; prefer hestia_list_restic_backups to discover snapshot IDs first or hestia_backup_archive_inspect (diagnostics) for classic .tar archives. Returns { ok, targetId, command, data (file listing) }.

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": {
      "user": "<user>"
    },
    "name": "hestia_list_restic_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesHestiaCP account username.
folderNoOptional subfolder path filter inside the snapshot.
snapshotNoOptional Restic snapshot ID (or "latest").
targetIdNoConfigured target identifier (defaults to "default").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile needs no restating. The description adds value beyond them by naming the backing command and the result envelope { ok, targetId, command, data }, which tells the agent what a call produces. It stops short of noting pagination or large-listing behavior, so it is strong but not exhaustive.

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 tight sentences: purpose first, use-case and alternative routing second, return shape last. Every sentence carries information and there is no filler or restatement of the title.

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 read-only listing tool with a fully described schema, this is complete: it covers purpose, sibling routing, the underlying command, and the response envelope despite no output schema existing. The only thing an agent might still want is listing size or truncation behavior, which is minor here.

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 the schema already documents user, folder, snapshot, and targetId, and the baseline is 3. The description reinforces the snapshot-scoping intent but adds no detail on parameter interplay, such as how folder filters compose with snapshot selection or how "latest" resolves.

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?

Specific verb and resource: "List files and directories inside a user Restic incremental backup snapshot," plus the underlying command v-list-user-files-restic. It also names the two nearest siblings (hestia_list_restic_backups and hestia_backup_archive_inspect), so an agent can distinguish this tool from them without opening any 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?

Explicit when-to-use ("locating paths inside a known Restic snapshot") and explicit routing to alternatives: hestia_list_restic_backups to discover snapshot IDs first, and hestia_backup_archive_inspect for classic .tar archives instead of Restic snapshots. Nothing about the selection decision is left to inference.

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