Skip to main content
Glama

relay-file

Destructive

Transfers, fetches, sends, packs, or relays files between hosts using each endpoint's configured access, so requests carry no password.

Instructions

dbabrain common.cli relay-file: A file fetched, sent, packed or relayed over the host's own access. server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • target: A label for the answer - the server_id. Nothing is looked up by it: common.cli reads no configuration (rules R09).

  • server_id: The same label, when not in target.

  • access: The host login, complete: an inline cmd_access - method (ssh|winrm), host, port, username, auth_type, key_file or password - with the machine's platform and runtime facts. The app that calls fills it from its own data...

  • remote_path: fetch/send: the file on the host.

  • local_path: fetch/send: the file here.

  • overwrite: Replace an existing file.

  • make_dirs: Create missing folders.

  • files: pack-files: the files.

  • folder: pack-files: or a folder.

  • include: pack-files: patterns within it.

  • format: pack-files: tar | tar.gz | zip.

  • archive_path: pack-files: the archive.

  • checksum_files: pack-files: hash each member.

  • source: relay-file: {access, target, path} - each side states its own login.

  • destination: relay-file: {access, target, path}.

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": "relay-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description is consistent with that, adding genuinely useful context: credentials come from the node's inventory and encrypted secret store so no password travels in the request, and destructive emergency-ops commands need confirm plus reason. It does not contradict annotations and adds operational detail they cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The front-loaded sentence is useful, but the body is a long flat field dump that mixes fields belonging to fetch/send/pack-files with relay-file's own, and includes dangling ellipses and a stray rule reference "(rules R09)". An agent must sift unrelated entries to find the source/destination fields it actually needs.

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, so return values need not be explained, and the confirm/reason and credential-sourcing behavior are covered. What is missing is a clear statement of what relay-file alone does versus the sibling file commands, which matters for a destructive, open-world transfer tool.

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 coverage is 0% (a single opaque `request` object), so the description must carry all field meaning, and it does list field names with brief glosses. However the glosses are terse and partially truncated ("The app that calls fills it from its own data..."), and the nested shape of `access` is only sketched, leaving real ambiguity for a destructive transfer.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence says a file is "fetched, sent, packed or relayed over the host's own access," which names the resource but muddles the verb by covering four operations at once. Only later field glosses ("source: relay-file: {access, target, path}") hint at the tool's actual two-sided transfer role. An agent cannot cleanly separate relay-file from fetch-file/send-file/pack-files siblings on this text.

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

Usage Guidelines3/5

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

It gives a real usage prerequisite: commands on the emergency-operations list require `confirm: "yes"` and a `reason`. The `source`/`destination` structure implies relay is for crossing between two hosts each with its own login, which is implicit routing guidance. But there is no explicit when-to-use or when-not versus the many file siblings.

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