Skip to main content
Glama

gateway_backup

Download a full Gateway backup (.gwbk) with projects, tags, configuration, and credentials; use dry_run to preview, then confirm=True to save and verify the archive.

Instructions

Download a full Gateway backup (.gwbk).

The archive includes projects, tags, Gateway configuration and credentials, so treat the output as sensitive. It requires an administrator Gateway session; no API token is required. Use dry_run to preview, then confirm=True to download.

Args: output_path: Destination file or existing directory. Defaults to backups/<gateway>_gateway_backup_<timestamp>.gwbk. include_peer_local: Include peer-local data in a redundant pair. confirm: Must be True to download. dry_run: Preview the endpoint and destination without downloading.

Returns: Backup path, byte count and verification status.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gateway_backup"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
dry_runNo
output_pathNo
include_peer_localNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the sensitivity of the output (credentials in the archive), the auth requirement (admin session, no API token), and the two-stage confirm gate. It omits operational traits like expected duration or size of a large backup, which matters for a download tool.

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?

Front-loaded with the action, followed by sensitivity, auth, workflow, and per-argument notes in a compact Args block. Every sentence earns its place, and the Returns line is short even though an output schema already exists.

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?

For a destructive-ish, credential-exposing download with no annotations, the definition covers safety, auth, confirmation, and all parameters. An output schema exists, so the brief Returns note is a bonus rather than a necessity; only runtime expectations (size, time) are absent.

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 description coverage is 0%, so the description must define all four parameters, and it does: output_path with its default filename pattern, include_peer_local and its redundant-pair meaning, confirm as a hard gate, and dry_run as a preview. Only include_peer_local's exact effect on archive contents is left slightly abstract.

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 opens with a specific verb and resource ('Download a full Gateway backup (.gwbk)') and enumerates archive contents, so the agent knows exactly what it produces. It does not explicitly distinguish itself from the similarly named sibling gateway_backup_status, which is the only missing piece for a 5.

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 prescribes a concrete workflow ('Use dry_run to preview, then confirm=True to download') and states the precondition of an administrator Gateway session. It stops short of naming alternatives such as gateway_backup_status or create_project_backup, so the agent must infer routing.

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