Skip to main content
Glama

send-file

Destructive

Transfers, fetches, packs, or relays files over a server’s own host access using stored credentials, so requests never include passwords.

Instructions

dbabrain common.cli send-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": "send-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 readOnlyHint=false, destructiveHint=true, and openWorldHint=true, and the description corroborates them with 'Changes or removes something'. It adds real behavioral context the annotations cannot convey: credentials are completed from the node's inventory and encrypted secret store so the request carries no password, and emergency-listed commands require confirm and a reason. The gap is that these traits are stated for the whole CLI family, not pinned to send-file, so the agent cannot be sure which apply here.

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 text is a multi-operation dump with trailing ellipses ('from its own data...'), an internal rule citation ('rules R09'), and menu-like fragments ('tar | tar.gz | zip') that mix reference material for four different commands. Useful content is buried mid-paragraph rather than front-loaded, and the 'Changes or removes something' sentence is a dangling fragment.

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 field catalog covers the biggest blind spot in an opaque request object. What is missing is operation-specific completeness: which subset of fields actually applies to send-file, whether it mutates or only reads the remote host, and whether it triggers the confirm/reason gate.

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 an opaque additionalProperties object, so the description carries the entire burden and does so by enumerating target, server_id, access, remote_path, local_path, overwrite, make_dirs and the pack/relay fields. Two fields are explicitly scoped to this tool ('remote_path: fetch/send', 'local_path: fetch/send'), but the remaining fields and the composition of `access` are only hinted at, so it is not a complete substitute for a schema.

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 opens with 'A file fetched, sent, packed or relayed over the host's own access', which is a generic framing for an entire CLI family rather than for send-file specifically. The transport mechanism (host's own access, credentials resolved from inventory, no password in the request) is genuinely informative, but an agent cannot tell from this text how send-file differs from fetch-file, pack-files, or relay-file, which are all described in the same block.

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 statement of when to choose send-file over the sibling operations; the reader must infer it from field annotations like 'remote_path: fetch/send'. The one conditional given ('A command on the emergency-operations list takes confirm: "yes" and a reason') is a compliance rule rather than selection guidance, and it does not say whether send-file is on that list.

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