Skip to main content
Glama

Encrypt / decrypt text (AES-256-GCM)

encrypt_text
Read-only

Encrypt plain text with a passphrase using AES-256-GCM, or decrypt a base64 payload produced by this tool. Use it to protect or recover text data in scripts and AI workflows.

Instructions

Encrypt text with a passphrase (AES-256-GCM, scrypt key derivation) or decrypt a value produced by this tool. Output is base64 of salt|iv|tag|ciphertext. (Same as IT-Tools /encryption.)

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": {
      "action": "<action>",
      "text": "<text>",
      "passphrase": "<passphrase>"
    },
    "name": "encrypt_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesPlain text to encrypt, or base64 payload to decrypt
actionYes
passphraseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true and openWorldHint=false, which is consistent here since encryption is a pure local computation with no state mutation. The description adds real behavioral context above that bar: the KDF (scrypt), the cipher (AES-256-GCM), and the exact output layout salt|iv|tag|ciphertext, which explains why repeated calls are non-idempotent (random salt).

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?

A single dense sentence, front-loaded with the primary action and followed by algorithm and format details. Every clause carries information, though the trailing parentheticals about scrypt and the IT-Tools parity stack up and make it slightly harder to scan.

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?

With no output schema, the description usefully specifies the base64 salt|iv|tag|ciphertext return format, so the agent knows what it will receive and what it can feed back in for decryption. The main omission is decrypt failure behavior (e.g., wrong passphrase or malformed payload), which matters for a tool whose round trip can silently fail.

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 only 33%, with just the 'text' parameter described in the schema; 'action' is self-documenting via its enum, and 'passphrase' has only a minLength constraint. The description partially compensates by tying the passphrase to encryption/decryption and clarifying that 'text' holds either plaintext or a base64 payload, but it never states passphrase handling requirements or failure behavior on a wrong passphrase.

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?

Names a specific verb pair (encrypt/decrypt), the exact resource (text), and the underlying mechanism (AES-256-GCM with scrypt). This clearly separates it from hash_text, bcrypt, and hmac, since it is the reversible-encryption option in the catalog.

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

Usage Guidelines3/5

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

The phrase 'decrypt a value produced by this tool' is a genuine usage constraint that prevents agents from pointing it at arbitrary ciphertext. However, there is no explicit guidance on when to pick this over a hashing sibling like hash_text or bcrypt, so the agent must infer that reversibility is the deciding factor.

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