Skip to main content
Glama
backrest-mcp

backrest-mcp

by TadMSTR

get_download_url

Get a signed download URL for a file produced by a restore operation.

Instructions

Get a signed download URL for a file produced by a restore operation.

Companion to restore_snapshot: after a restore, fetch a URL to download a specific restored file.

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": {
      "operation_id": "<operation_id>",
      "file_path": "<file_path>"
    },
    "name": "get_download_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_pathYesPath of the file within the restored output to download. Must be absolute; a '..' segment or an ASCII control character is refused.
operation_idYesThe restore operation's ID (from get_operations).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • changedInput schema / properties / file_path / description
      Previous value: -"Path of the file within the restored output to download."New value: +"Path of the file within the restored output to download. Must be\n       absolute; a '..' segment or an ASCII control character is refused."
  2. First observedv0.3.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it discloses the prerequisite (a prior restore via restore_snapshot) and that the returned URL is signed. It does not say whether the URL expires, how long it is valid, whether repeated calls yield the same URL, or what permissions are required to mint one — meaningful gaps for a credential-issuing tool.

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 short sentences, front-loaded with the core action, with no filler. The second sentence partially restates the first ('after a restore, fetch a URL to download a specific restored file'), a minor redundancy that keeps it from a 5.

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 return-format details are covered elsewhere, and the restore prerequisite plus path constraints are stated. For a credential-issuing tool, URL lifetime/expiry behavior would be the remaining detail an agent might need, but the definition is otherwise sufficient.

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%, with both operation_id's source (get_operations) and file_path's absolute-path/'..' validation rules documented in the schema itself. The description adds only the contextual link that operation_id comes from a restore operation, so the baseline 3 applies.

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 ('Get a signed download URL') and narrows scope to 'a file produced by a restore operation', which distinguishes it from listing tools like list_snapshot_files and from get_operations. An agent can identify the intended use 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 Guidelines4/5

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

Explicitly frames the tool as a 'Companion to restore_snapshot' and says to call it 'after a restore' to fetch a specific restored file, giving a clear triggering condition. It stops short of stating when not to use it (e.g., for snapshot files that were never restored) or naming alternatives for that case.

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