Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Encrypt file

encrypt_file

Encrypts a single file with a passphrase into a new .axenc file beside it, leaving the plaintext intact; use the matching decrypt operation to reverse it.

Instructions

Encrypt one file into a new .axenc file next to it (axross's format). Use when: one file must be kept under a passphrase; decrypt_file reverses it. Instead: create_archive as 7z with a password for several files. Requires: --mcp-tools crypto. Behavior: only adds; the plaintext stays ('a.txt' -> 'a.txt.axenc', taken: 'a.txt (2).axenc'); each call adds a file. At most 1 GiB; new local files are mode 0600. Refuses secret files. Time limit: 5 min. Returns: {path, size, plaintext_size}.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "passphrase": "<passphrase>"
    },
    "name": "encrypt_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe file to encrypt, not a folder (absolute, or relative to the MCP root). Required unless path_b64 is given.
backendNoBackend id from list_backends; omit for the default.
path_b64Nopath as base64 of its raw bytes, for non-UTF-8 names; replaces path.
passphraseYesThe passphrase; the key is derived with PBKDF2-SHA256 (200,000 iterations) for AES-256-GCM. Never logged or returned.

Output Schema

NameRequiredDescriptionDefault
pathYes
sizeYes
plaintext_sizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare the generic profile (not read-only, not idempotent, not destructive, open-world); the description adds the concrete semantics: plaintext is left in place, collision naming is 'a.txt (2).axenc', one file per call, 1 GiB cap, mode 0600 on new local files, refuses secret files, 5-minute limit. These details are consistent with destructiveHint=false ('only adds') and idempotentHint=false ('each call adds a file'), and they tell the agent what a repeat call actually produces.

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

Conciseness5/5

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

Front-loaded purpose sentence followed by labeled sections (Use when / Instead / Requires / Behavior / Returns), so an agent can scan to the clause it needs. Every sentence carries new information; no restatement of the name or title.

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

Completeness5/5

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

For a mutation with a security-relevant output, the definition covers prerequisites, side effects, naming, size/time limits, permissions, and a summary of return fields even though a full output schema exists. Nothing needed to call it or to predict its effect on the filesystem is missing.

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 description coverage is 100% and each parameter already carries a precise description (path vs path_b64, backend resolution, PBKDF2/AES-256-GCM key derivation). The description adds no parameter-level detail beyond noting the passphrase requirement implicitly ('kept under a passphrase'), so the schema does the heavy lifting and the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Encrypt one file into a new .axenc file next to it') and immediately scopes it: one file, not a folder, not an archive. It names the inverse sibling (decrypt_file) and the multi-file alternative (create_archive as 7z with a password), so an agent can distinguish it from neighbors without opening any schema.

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

Usage Guidelines5/5

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

Explicit 'Use when' clause, an explicit 'Instead' clause pointing to create_archive for several files, and a hard prerequisite ('Requires: --mcp-tools crypto'). When-to-use, when-to-use-something-else, and eligibility are all stated rather than inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.