Skip to main content
Glama

Hash data

crypto_hash
Read-onlyIdempotent

Compute SHA-256, SHA-384, SHA-512, SHA3-256, or BLAKE2b512 digests from a data string to verify integrity and create deterministic fingerprints.

Instructions

Compute cryptographic digest (SHA-256, SHA-384, SHA-512, SHA3-256, BLAKE2b512).

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": {
      "data": "<data>"
    },
    "name": "crypto_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesData string to hash.
algorithmNoHash algorithm.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.41

TDQS

C2.9/5.0
Behavior2/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 fully covered. The description adds no context beyond the algorithm list already present as a schema enum — it says nothing about output encoding (hex vs base64), the input string encoding, or size limits, despite having no output schema.

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?

A single front-loaded sentence with no filler; the algorithm enumeration is slightly redundant with the schema enum but stays compact and readable.

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?

For a simple two-parameter utility with complete annotations and full schema coverage, the definition is adequate to invoke it. However, with no output schema the description should state what the digest return value looks like, and it does 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 the algorithm enum is fully enumerated in the schema, so the description's algorithm list is a restatement rather than added meaning. With the schema doing all the work, the baseline of 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?

The description names a specific verb and resource ("Compute cryptographic digest") and enumerates the supported algorithms, which is enough to separate it from siblings like crypto_sign or crypto_encrypt. It never explicitly says the hash is unkeyed, but the operation is unambiguous.

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 guidance on when to choose hashing over crypto_sign, crypto_verify, or the KEM/stream tools, and no stated preconditions or exclusions. The agent must infer usage purely from the tool name and sibling naming.

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