Skip to main content
Glama

Metis — Encrypt Backup

encrypt_backup

Encrypts a backup file with AES-256-GCM using a provided passphrase. The passphrase is never stored, and the encrypted output is saved with a .enc extension.

Instructions

AES-256-GCM encrypt a backup file.

Produces <backup_path>.enc. The passphrase is never stored.
Uses Python stdlib only (hashlib for key derivation, os.urandom for salt/nonce).

NOTE: This uses a simple PBKDF2+AES-GCM implementation.
For production-grade encryption, use a proper secrets manager.

Args:
    backup_path: Full path to the .sqlite backup file.
    passphrase:  Encryption passphrase.

Returns JSON with enc_path and whether original was removed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
passphraseYes
backup_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Without annotations, the description carries the full burden. It states the passphrase is never stored and describes the output and return value, but does not mention overwriting behavior, error handling, or authentication requirements.

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?

The description is concise, with essential information front-loaded. Every sentence adds value, and the argument section is succinct.

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

Completeness4/5

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

Given the tool's simplicity, the description covers key aspects: algorithm, output file, security note, and return JSON. It could mention potential errors or edge cases, but overall adequate.

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%, so the description must explain parameters. It provides brief but clear definitions for `backup_path` and `passphrase`, adding meaning beyond 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 description clearly states the tool encrypts a backup file using AES-256-GCM and produces an output file with '.enc' extension. It distinguishes itself from sibling tools like `decrypt_backup`.

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

Usage Guidelines4/5

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

It notes that the implementation uses Python stdlib and is simple, advising against production-grade use without a secrets manager. However, it does not explicitly contrast with other tools or specify conditions for use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SVerITG/Metis'

If you have feedback or need assistance with the MCP directory API, please join our Discord server