Skip to main content
Glama

fetch-file

Destructive

Fetch, send, pack, or relay files between hosts using stored credentials, with options to overwrite existing files and create missing folders.

Instructions

dbabrain common.cli fetch-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": "fetch-file"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false and openWorldHint=true, and the description adds genuinely new behavior: credentials come from this node's inventory and encrypted secret store so no password travels in the request, and emergency-operations commands require confirm:"yes" plus a reason. The 'Changes or removes something' line is consistent with the destructive annotation rather than contradicting it.

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 definition is a pasted CLI help dump with a truncated access explanation ending in ellipses, inconsistent formatting and smart quotes, and no front-loaded statement of the primary task. Considerable length is spent on fields for other operations, so the signal-to-noise ratio is poor.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world multi-mode tool behind one opaque parameter, the description should state the mode it covers, which fields matter for a fetch, and when confirm/reason become mandatory. It has an output schema so return values needn't be explained, but the missing mode scoping and the field overlap with siblings leave the agent under-informed.

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?

The schema is a single opaque `request` object with additionalProperties:true and 0% description coverage, so the description must carry the load — and it does enumerate many fields (target, server_id, access, remote_path, local_path, overwrite, make_dirs, and others) with short glosses. However the enumeration is truncated mid-sentence, mixes fields belonging to sibling operations, and never states which fields are required for the fetch case.

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 line names a resource (file) but hedges across four distinct operations — 'fetched, sent, packed or relayed' — so an agent cannot tell which single operation this tool actually performs. The mechanism ('over the host's own access') is stated, but scope is blurred, especially since relay-file and pack-files exist as separate siblings.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no routing to siblings such as relay-file, pack-files, send-file, or pull-file. Instead the description absorbs their request fields (files, folder, source, destination), which actively pushes the agent toward using one generic tool for many jobs rather than the correct one.

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