MCP server exposing cryptography library functionality
Server provides 11 cryptography tools with consistent naming (verb_noun pattern: generate_*, encrypt, decrypt, sign, verify) and complete input schemas. All tools have descriptions and parameter types. However, descriptions are terse (avg 45 chars, well below 194-char baseline), lack WHEN/WHY guidance, and omit error recovery hints. Output schemas are undocumented, callers cannot predict return structure. No error handling guidance. Missing idempotency/destructiveness annotations. Composition is sound (single responsibility per tool), but parameter descriptions lack format/constraint details (e.g., 'key_size must be at least 2048' is in docstring, not schema description).
Decrypt AES ciphertext.
Encrypt data using AES.
Decrypt Fernet ciphertext.
Encrypt data using Fernet symmetric encryption.
Generate an RSA key pair.
Generate a Fernet symmetric key.
Generate an X25519 key pair for key exchange.
Output schemas undocumented. Tools return dicts (e.g., generate_rsa_key returns {public_key, private_key}) but LLMs cannot predict structure without explicit schema docs. Violates pattern:tool requirement.
Descriptions are terse (avg 45 chars vs 194-char baseline). Missing WHEN/WHY context. E.g., 'Encrypt data using Fernet symmetric encryption' does not explain when to use Fernet vs AES vs RSA, or what prerequisites exist. LLMs cannot disambiguate tool selection.
Parameter descriptions lack format/constraint details. E.g., 'key_size' param in generate_rsa_key has description 'Key size in bits (default 2048). Must be at least 2048.' but constraint is in docstring, not schema description field. LLMs may not parse docstrings.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 54 | 2026-07-28+ | v2 |
Decrypt RSA ciphertext using private key.
Encrypt data using RSA with OAEP asymmetric_padding.
Create RSA digital signature.
Verify RSA digital signature.
No error handling guidance. Tools raise exceptions (e.g., fernet_decrypt raises InvalidToken, aes_encrypt raises ValueError) but descriptions do not explain recovery steps. LLMs cannot self-correct on failure.
Missing tool annotations. No readOnlyHint or destructiveHint declared. LLMs cannot infer which tools are safe to retry (generate_* are idempotent; encrypt/sign are deterministic or not). Violates pattern:tool-annotation.