Skip to main content
Glama

pack-files

Destructive

Bundle selected host files and folders into tar, tar.gz, or zip archives with optional checksums, so database host files can be transferred or inspected as one package.

Instructions

dbabrain common.cli pack-files: 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": "pack-files"
  }
}

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 destructive and open-world, and the description adds genuinely new behavioral facts: credentials come from the node's inventory and encrypted secret store so no password travels in the request, and certain commands require `confirm: "yes"` plus a `reason`. It does not say what overwriting or packing does to existing archives, nor how partial failures are reported, so it stops short of full disclosure for a destructive tool.

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

Conciseness4/5

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

Placeholder.

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 description does cover authentication sourcing and the confirmation requirement. Still, a destructive multi-mode tool with a free-form request object and no schema documentation leaves the agent guessing about archive format defaults, path semantics and failure behavior.

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% with a single free-form `request` object, so the description must carry all parameter meaning, and it does enumerate request fields such as `files`, `folder`, `include`, `format`, `archive_path` and `checksum_files`. However, those glosses are terse to the point of tautology ('the files', 'or a folder', 'patterns within it'), and the list is diluted by fields belonging to other subcommands (source, destination, remote_path).

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 first line describes a family of four operations (fetched, sent, packed, relayed) rather than a single one, so the specific verb for this tool only emerges indirectly from field names like `files`, `format` and `archive_path`. An agent can infer packing, but the definition does not cleanly separate this tool from relay-file, whose fields are also spelled out in the same paragraph.

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 use pack-files versus siblings such as copy-files, relay-file or pack-backup, and no prerequisites beyond the emergency-operations `confirm` rule. The only conditional guidance is about `confirm`/`reason`, which is tangential to selecting this tool.

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