Skip to main content
Glama

Multi-recipient stream decrypt data (post-quantum)

crypto_stream_multi_decrypt
Read-onlyIdempotent

Decrypt multi-recipient post-quantum hybrid STREAM AEAD ciphertexts using server-held X25519 and ML-KEM-768 key handles; plaintext memory is wiped after decoding.

Instructions

Decrypt a multi-recipient post-quantum hybrid STREAM AEAD ciphertext using server-held x25519 and ml-kem-768 key handles. Plaintext memory is wiped after decoding.

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": {
      "ciphertext": "<ciphertext>",
      "x25519KeyHandle": "<x25519KeyHandle>",
      "mlKemKeyHandle": "<mlKemKeyHandle>"
    },
    "name": "crypto_stream_multi_decrypt"
  }
}

Input Schema

NameRequiredDescriptionDefault
chunkSizeNoChunk size in bytes (minimum 1024, maximum 16777216, default 65536).
ciphertextYesBase64-encoded multi-recipient STREAM ciphertext.
recipientIdNoOptional recipient identifier for direct slot lookup.
mlKemKeyHandleYesHandle of the recipient ML-KEM-768 key. Key handles look like 'kh_' followed by 32 hex characters.
x25519KeyHandleYesHandle of the recipient X25519 key (or 32-byte symmetric-256 key). Key handles look like 'kh_' followed by 32 hex characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.41

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds two genuine behavioral facts beyond that: keys are server-held handles rather than raw material, and plaintext memory is wiped after decoding. It says nothing about failure modes, whether recipientId changes lookup cost, or how chunkSize interacts with large ciphertexts.

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?

Two sentences, no filler, with the core operation front-loaded. The memory-wipe note is a slight afterthought but is short and relevant, so nothing is worth cutting.

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?

With no output schema, the description carries the burden of explaining the return value, yet it never says plaintext is returned (presumably base64) or how recipientId versus key handles select the recipient slot. For a five-parameter cryptographic decode operation, key mechanics are covered but the result contract is not.

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%, and each of the five parameters carries its own description including format hints for key handles and the chunkSize default/range. The description restates the key-handle inputs but adds no new meaning, so the baseline 3 applies.

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 a specific verb and resource ('Decrypt a multi-recipient post-quantum hybrid STREAM AEAD ciphertext') plus the exact key material involved (x25519 and ml-kem-768 handles). The 'multi-recipient' qualifier separates it in spirit from crypto_stream_decrypt and crypto_stream_multi_encrypt, but it never explicitly names those siblings.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance. An agent must infer from the adjective 'multi-recipient' that this is the right tool over crypto_stream_decrypt or crypto_decrypt, and nothing states prerequisites such as keys having to be imported server-side first.

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