Skip to main content
Glama

push-file

Destructive

Push a local file to a remote host and verify the transferred file matches the supplied SHA-256 checksum.

Instructions

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

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description goes beyond them by disclosing the confirmation/reason requirement for emergency operations and the checksum-match expectation. It still does not say what happens when the checksum fails or whether the remote file is overwritten, which matters for a destructive open-world write.

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

Conciseness3/5

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

The bulleted field list is scannable and the confirmation rule is front-loaded, but the opening sentence is garbled and mixes three operations, and several bullets apply to sibling tools rather than this one. Some content earns its place; some is noise for a caller of push-file.

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 nested request shape is substantially covered. For a destructive, open-world write tool, though, the description omits failure behavior (checksum mismatch), overwrite semantics on remote_path, and the fact that only push-relevant fields apply — gaps an agent would want before invoking.

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 schema exposes only an opaque `request` object with additionalProperties, so the description carries the full burden — and it does enumerate the individual request fields (host, files, remote_path, local_path, sha256, timeout_seconds) with brief meanings. The value is partially diluted by including pack-backup-only fields (folder, archive_path, format) that are irrelevant to push-file and by terse definitions like "The checksum it must match."

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 conveys that this involves one file being pulled or pushed with checksums, and the name states a verb+resource, but the first sentence bundles pack-backup, pull, and push into one statement, so an agent cannot cleanly separate push-file's purpose from pull-file or pack-backup. The core operation (push a file to a remote host) is only implied by the field annotations rather than stated directly.

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?

Useful preconditions are given: emergency-operations commands require `confirm`: "yes" and a `reason`. The per-field prefixes ("pack-backup:", "pull/push:") also hint at which fields belong to which mode. However, there is no explicit statement of when to use push-file versus pull-file or pack-backup, so an agent must infer the selection.

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