Skip to main content
Glama

Multi-recipient stream encrypt data (post-quantum)

crypto_stream_multi_encrypt
Read-onlyIdempotent

Encrypt plaintext for multiple recipients with post-quantum hybrid STREAM AEAD (X25519 + ML-KEM-768 + XChaCha20-Poly1305), anti-truncation framing, and base64 ciphertext output.

Instructions

Encrypt plaintext for multiple recipients using post-quantum hybrid STREAM AEAD (X25519 + ML-KEM-768 + XChaCha20-Poly1305) with anti-truncation framing. Returns base64 ciphertext.

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": {
      "plaintext": "<plaintext>",
      "recipients": "<recipients>"
    },
    "name": "crypto_stream_multi_encrypt"
  }
}

Input Schema

NameRequiredDescriptionDefault
chunkSizeNoChunk size in bytes (minimum 1024, maximum 16777216, default 65536).
plaintextYesPlaintext string to encrypt.
recipientsYesJSON-serialized array of recipient public key descriptors: [{ recipientId, recipientX25519Public, recipientMlKemPublic }].

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.41

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds value beyond them by naming the exact hybrid KEM/AEAD stack, the anti-truncation framing property, and the base64 output encoding. It stops short of disclosing key-format requirements or failure modes.

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, front-loaded with the action and scope, followed by the return type. The algorithm parenthetical is dense but each element (KEM, AEAD, framing) carries real selection value.

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 correctly states the return is base64 ciphertext, and all three parameters are fully documented in the schema. It could say more about how framing metadata is carried in the ciphertext or how recipients are validated, but nothing essential to calling it 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%, so plaintext, recipients, and chunkSize are all documented in the schema itself, including the recipient descriptor shape. The description adds no further parameter meaning (e.g., chunkSize trade-offs or recipient array ordering), so baseline 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 (encrypt), resource (plaintext), and a distinguishing scope (multiple recipients) plus the concrete construction (X25519 + ML-KEM-768 + XChaCha20-Poly1305 with anti-truncation framing). An agent can separate this from single-recipient crypto_stream_encrypt or generic crypto_encrypt from the description alone.

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 multi-recipient scope implies when to pick this over single-recipient encrypt, but no sibling is named and there are no explicit when-not conditions or prerequisites. Usage is inferable rather than stated.

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