Skip to main content
Glama

pull-file

Destructive

Pull a single file from a remote host or pack a backup folder into an archive, verifying its SHA-256 checksum to confirm integrity.

Instructions

dbabrain common.cli pull-file: A backup folder packed, or one file pulled or pushed, with checksums. 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):

  • host: The host: {host, port, username, password|key_file}.

  • folder: pack-backup: the folder.

  • files: pack-backup: or named files.

  • archive_path: pack-backup: the archive.

  • format: pack-backup: tar | tar.gz.

  • remote_path: pull/push: the file there.

  • local_path: pull/push: the file here.

  • sha256: The checksum it must match.

  • timeout_seconds: How long to wait.

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

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/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 is consistent with them ('Changes or removes something'). It adds the confirm/reason escalation requirement and a checksum-matching constraint, which are real behavioral facts not in the annotations, but the confirm rule is left ambiguous about applicability and no partial-failure or overwrite semantics are described.

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 lead sentence is a run-on that merges packing, pulling, and pushing, and the field list uses cryptic prefixes like 'pack-backup:' and 'pull/push:' rather than plain descriptions. Useful content is present but poorly front-loaded and mixed with fields irrelevant to this tool.

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, but for a destructive, open-world file operation the definition leaves gaps: it never states the direction of transfer unambiguously, whether local files get overwritten, or how the sha256 mismatch is handled. The relevant subset of request fields is covered, but the pack-backup fields add noise rather than completeness.

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 0% and the single `request` parameter is a free-form object with additionalProperties, so the schema alone tells the agent nothing. The description compensates well by enumerating concrete request fields — host, remote_path, local_path, sha256, timeout_seconds — with operation tags indicating which apply to pull/push.

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 description names the resource (a file) and the operation family (pull/push with checksums), but the opening sentence conflates three different operations — 'A backup folder packed, or one file pulled or pushed' — so it never cleanly states that this specific tool retrieves a remote file to a local path. Siblings like pack-backup and push-file exist, and the description does not draw a line between them and this tool.

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 a conditional note that commands on the 'emergency-operations list' require `confirm`: "yes" and a `reason`, but it never says whether pull-file is on that list, so the agent cannot act on it. No guidance distinguishes this from fetch-file, send-file, relay-file, or push-file, and no preconditions (credentials, overwrite behavior) are given.

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