Skip to main content
Glama
axross-headless-mcp

axross-headless-mcp

Decrypt file

decrypt_file

Decrypt an .axenc file with a passphrase and restore its plaintext output beside the original. Use it to recover files encrypted by axross when the correct passphrase is available.

Instructions

Decrypt an .axenc file into a new plaintext file next to it. Use when: restoring a file encrypted with axross. Instead: extract_archive for encrypted 7z or ZIP archives. Requires: --mcp-tools crypto. Behavior: only adds ('a.txt.axenc' -> 'a.txt', taken: 'a (2).txt'; a name without .axenc gets '.decrypted'); each call adds a file. A wrong passphrase or tampered file fails, leaving nothing. At most 1 GiB; new local files are mode 0600. Time limit: 5 min. Returns: {path, 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": "decrypt_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoThe .axenc file to decrypt (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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.15.181

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false), the description discloses that each call ADDS a file rather than overwriting, with collision renaming ('a (2).txt') and a '.decrypted' suffix fallback. It also covers failure semantics (wrong passphrase or tampered file leaves nothing), a 1 GiB size cap, mode 0600 on new files, and a 5-minute time limit — exactly the non-obvious behavior an agent needs.

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?

Labeled lines (Use when / Instead / Requires / Behavior / Returns) front-load the action and constraints with no filler. Every sentence carries a distinct operational fact.

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 mutating, open-world file operation the definition covers prerequisites, side effects, failure modes, limits, and permissions. An output schema exists, and the description still gives the useful return shape {path, size} without redundant detail.

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 already 100%, so the baseline is 3; the description goes further by explaining the naming outcome for a path lacking the .axenc extension and what a bad passphrase does. It does not discuss the backend or path_b64 parameters, leaving those to the schema.

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?

The first sentence gives a specific verb (decrypt), a specific input format (.axenc file), and the output destination (a new plaintext file next to it). It also names the sibling tool extract_archive as the alternative, so an agent can distinguish the two without opening either 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?

'Use when: restoring a file encrypted with axross' and 'Instead: extract_archive for encrypted 7z or ZIP archives' give explicit when-to-use and when-not-to-use routing. 'Requires: --mcp-tools crypto' adds a prerequisite that would otherwise cause a failed call.

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