Skip to main content
Glama

Encrypt or decrypt with AES-GCM

aes_crypt
Read-onlyIdempotent

AES-256-GCM encryption with PBKDF2-SHA256 key derivation. Encrypt returns a base64 bundle (salt, IV, ciphertext); decrypt reverses it.

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": {
      "mode": "<mode>",
      "passphrase": "<passphrase>"
    },
    "name": "aes_crypt"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
textNoPlaintext to encrypt (encrypt mode)
bundleNoBase64 bundle from a previous encryption (decrypt mode)
iterationsNo
passphraseYes

Output Schema

NameRequiredDescriptionDefault
modeYes
bundleNo
plaintextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the description is not carrying the safety profile. It does add useful behavior — the bundle's composition (salt, IV, ciphertext) and the derivation scheme — but says nothing about whether salt/IV are randomized per call (which bears on the idempotent hint) or how decryption fails on a wrong passphrase or mismatched iterations.

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?

Two sentences, both load-bearing: the first establishes algorithm and derivation, the second establishes the input/output contract for each mode. Nothing is repeated from the schema and the core fact is front-loaded.

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 spelled out, and the description covers the essential round-trip contract. For a five-parameter cryptographic tool, however, it omits the iteration-matching requirement on decrypt and any failure-mode guidance, which an agent needs to invoke it correctly.

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?

At 40% schema coverage the description must compensate, and it does partly: it explains that 'passphrase' feeds PBKDF2-SHA256 derivation and that 'bundle' is the base64 output of a prior encryption containing salt, IV and ciphertext. It never clarifies that 'iterations' must match between encrypt and decrypt, nor how 'text' versus 'bundle' is selected by mode.

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

Purpose4/5

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

Names the specific algorithm and both directions ('AES-256-GCM encryption with PBKDF2-SHA256 key derivation... decrypt reverses it'), so an agent knows exactly what the tool does and that it handles both modes. It does not distinguish itself from codec-style siblings such as base64_codec, leaving that inference to the agent.

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 mode descriptions imply when each applies ('Encrypt returns a base64 bundle... decrypt reverses it'), which effectively tells the agent to pick 'decrypt' for a bundle from a previous call. There is no explicit statement of when to prefer this tool over alternatives or any preconditions/exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.