Skip to main content
Glama

SHA256 hash, SHA-256: hash text with SHA-256, SHA-1, SHA-384 or SHA-512

hash
Read-only

Hash UTF-8 text with SHA-256 (default), SHA-1, SHA-384 or SHA-512 and return the digest in hex and base64. Use for checksums, cache keys and deduplication. Example: text=hello. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
textYesThe text to hash
algorithmNosha256 (default), sha1, sha384 or sha512

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), so the bar is lower; the description adds real value beyond them by disclosing pricing ($0.01/call via x402 USDC or card key), 25 free calls, and that failed calls are free. 'Each call is charged, so repeats are not free' usefully explains the non-idempotent annotation in practical terms, though 'reads or computes only' merely restates the readOnly hint.

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?

Core capability, usage, and cost are front-loaded in a compact four-sentence block with no filler. Minor redundancy: the per-call price and the 'repeats are not free' sentence say much the same thing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, no-output-schema tool, the description supplies everything needed: algorithms, default, input encoding, and return formats (hex and base64). An agent can call this correctly without opening the schema.

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 both parameters are already documented, and the description adds only a default restatement (SHA-256 default) and one example (text=hello). That is marginal added meaning over the structured schema, which is the expected baseline 3 case.

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 gives a specific verb (hash), resource (UTF-8 text), supported algorithms with an explicit default, and the return encoding (hex and base64). It is highly self-describing, but it never distinguishes itself from close siblings like hmac or pack_hash_toolbox, leaving the agent to infer that this tool is unkeyed hashing.

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?

'Use for checksums, cache keys and deduplication' gives concrete usage contexts rather than vague intent. It stops short of stating when NOT to use it — e.g. use hmac for keyed digests, or another tool for file hashing — so there is no explicit alternative routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.