Skip to main content
Glama

crypto_manage

Compute file and string checksums, generate random tokens, RSA keys, self-signed certificates, and HMAC digests for secure cryptographic operations.

Instructions

Cryptographic Operations, File/String Checksums, Random Tokens, RSA, and X509 Certificates.

Ops:

  • hash_file(file_path, algorithm="sha256") Compute checksum digest of a project file (sha256, sha1, md5).

  • hash_string(content, algorithm="sha256") Compute checksum digest of a string (sha256, sha1, md5).

  • generate_random_bytes(size=32, format="hex") Generate cryptographically secure random bytes (hex or base64).

  • generate_rsa_key(key_size=2048, save_path="") Generate and optionally save an RSA private key.

  • generate_self_signed_cert(key_path="", cert_save_path="", common_name="localhost", issuer_name="GodotMCP") Generate a self-signed X509 certificate.

  • hmac_digest(key, message, algorithm="sha256") Compute HMAC authentication digest.

Canonical call shape: {"op": "<verb>", "params": {...}}. Flat op parameters are accepted as a compatibility alias when the client transmits them; op and session_id remain top-level.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
opYes
paramsNo
session_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv5.0.28

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses some side effects, such as optionally saving an RSA key or certificate, and clarifies the canonical call shape with top-level op and session_id. However, it does not explain overwrite behavior, default save paths, permission needs, or what happens when save_path is empty, which leaves meaningful behavioral gaps.

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?

The description is long but highly structured: a high-level summary, a bullet list of operation signatures with one-line explanations, and a call-shape note. Each entry earns its place, though the repetitive 'generate_*' signatures could arguably be tightened slightly.

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?

Given that a tool must dispatch six distinct cryptographic operations, the description covers operation selection, signatures, defaults, and call format. It does not document session_id semantics or return value details, but the presence of an output schema reduces the burden for return-value explanation. Overall, an agent has enough to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates thoroughly: every operation lists its parameters, defaults, and accepted values (e.g., algorithms 'sha256', 'sha1', 'md5', output formats 'hex' or 'base64'). It also explains how the generic params object maps to specific operation arguments, which goes far beyond the bare input schema.

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?

The description opens with a specific resource class ('Cryptographic Operations, File/String Checksums, Random Tokens, RSA, and X509 Certificates') and then enumerates six concrete operations with distinct verbs. This makes the tool's scope unambiguous and clearly differentiates it from the many other *_manage sibling tools.

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

Usage Guidelines4/5

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

The operation list gives clear context for when to use the tool: hashing files/strings, generating random bytes, creating RSA keys, generating certificates, and computing HMACs. It does not explicitly name alternatives or exclusions, but for a tool with no close siblings, the enumerated operations themselves provide adequate usage direction.

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

Deploy Server

Other Tools