Skip to main content
Glama

Browse backup files

browse_restore_files
Idempotent

Queues a persisted asynchronous job to list one directory in a backup point for restore browsing, with paged results, resumable offsets, and optional name filtering.

Instructions

Create a persisted asynchronous browse job to list one directory inside a backup point. This queues worker activity and stores the listing result; it does not restore files, change backup contents or the running server, or charge the account. Start at the backup root by passing only backupPointId. To open a subdirectory, pass sourceBrowseId plus the directoryEntryId of a type=directory entry from that result; filesystem paths are never accepted. A directory can hold an enormous number of files, so the server selects pages of 200 or 1,000 entries: while result.nextOffset is non-null, call again with the same sourceBrowseId and directoryEntryId and offset set to result.nextOffset. Use result.pageSize rather than assuming 200 when moving backwards. When nextOffset is null the listing cannot be paged further even if truncated is true — that is a capped scan; check result.listingStatus: 'complete' means the folder was read end to end, 'partial' means the listing is a bounded lower-bound slice, so never present it as the whole folder. Optionally pass filter to search entry NAMES in that one directory (substring, case-insensitive, never recursive) — but only when list_restore_file_points reported searchAvailable=true, otherwise this tool refuses rather than silently returning an unfiltered listing. The call is asynchronous: it returns a browse id in a pending state, and you must poll get_restore_file_browse until state is succeeded. Requires services:read and, because it is a POST, an API key that permits write operations plus an idempotencyKey.

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": {
      "orderNo": "<orderNo>",
      "backupPointId": "<backupPointId>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "browse_restore_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filterNoCase-insensitive substring matched against entry NAMES in the browsed directory only. It never matches full paths and never searches subdirectories. Requires node search capability; check searchAvailable from list_restore_file_points first.
offsetNoCopy a non-null result.nextOffset to page further through the SAME directory (a null nextOffset means the listing cannot be paged further). Must be 0 (or omitted) when starting a root listing or entering a directory.
orderNoYesTenant-owned service order number: 1-64 ASCII letters, digits or hyphens, e.g. VP12345 or VP12345-1
backupPointIdYesBackup point ID returned by list_restore_file_points
idempotencyKeyYesClient-global unique key for this exact browse request; reuse it only to replay the same request.
sourceBrowseIdNoBrowse id of the succeeded listing the directory entry came from. Omit to list the backup root.
directoryEntryIdNoOpaque id of a type=directory entry from the source browse result. Filesystem paths are never accepted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.3.21
    • addedInput schema / properties / sourceBrowseId / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
  2. First observedv2.3.16

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it discloses that the call is asynchronous and queued, returns a pending browse id, must be polled via get_restore_file_browse, and does not restore or mutate backup contents. It also explains pagination caps, listingStatus semantics, filter refusal behavior, and the write-permission/idempotencyKey requirement for a POST.

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 description is front-loaded and organized logically: purpose, non-effects, directory navigation, pagination, filtering, async polling, and permissions. It is dense and somewhat long, but most sentences carry operational value for a complex paging job.

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?

Given the asynchronous paging behavior, the absence of an output schema, and the safety/annotation context, the description covers what an agent needs: result fields like nextOffset, pageSize, listingStatus, the browse id, polling requirements, and permission constraints. It is complete for correct invocation and interpretation.

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?

Schema coverage is 100%, so the field descriptions already document each parameter. The tool description adds important cross-parameter meaning: root versus subdirectory navigation, reusing sourceBrowseId and directoryEntryId while paging, using result.nextOffset, and requiring searchAvailable before using filter.

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?

The description opens with a specific verb and resource: creating a persisted asynchronous browse job to list one directory inside a backup point. It explicitly distinguishes this from restoring files and from the polling tool get_restore_file_browse, so an agent can tell what it does and does not do.

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?

It states exactly how to start at the root, how to enter a subdirectory using sourceBrowseId plus directoryEntryId, how to page with nextOffset and offset, and when filtering is allowed via searchAvailable. It also names the follow-up polling tool and explicitly excludes filesystem paths.

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

Deploy Server

Other Tools