Skip to main content
Glama

Hash

hash
Read-only

Hashes of a text or base64 input (up to 1 MB): MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC-32, and HMAC-SHA-256 or HMAC-SHA-512 when a key is given. Hex and base64 output. MD5 and CRC-32 are implemented here and checked against RFC 1321 and the standard CRC test vector. Body { input, encoding, algorithms, key }. Pure code and WebCrypto, no outside request. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.

Input Schema

NameRequiredDescriptionDefault
keyNoKey for the HMAC algorithms, up to 1024 characters (JSON body field)
inputYesThe text, or base64 when encoding is base64 (JSON body field)
encodingNotext (default) or base64
algorithmsNoComma-separated: md5, sha1, sha256, sha384, sha512, crc32, hmac-sha256, hmac-sha512 (default: all but the HMACs)

Output Schema

NameRequiredDescriptionDefault
bytesNo
sourceNo
resultsNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

The description is exceptionally strong on behavioral traits beyond the annotations. It specifies the implementation environment ('Pure code and WebCrypto'), the pricing structure ($0.002), input limits (up to 1MB), and technical verification status for certain algorithms (RFC 1321).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Despite being technical and detailed, the structure is highly efficient. It flows logically from core function to supported methods, constraints, output format, and operational costs.

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?

The tool definition is extremely robust. It provides an exhaustive list of functionality, implementation details, performance constraints (limit), and financial costs, making it complete for any agent attempting to use it.

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?

Even with 100% schema coverage, the description adds critical semantic meaning. It clarifies that the 'input' parameter can be text or base64 depending on the 'encoding' setting and precisely defines the expected format of the 'algorithms' string (comma-separated list).

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 purpose is clearly defined as hashing text or base64 input. It specifies a wide variety of supported cryptographic functions (MD5, SHA, CRC, HMAC), which makes the resource usage precise.

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?

While it doesn't explicitly list alternatives, it provides strong usage guidance by detailing when specific parameters are needed (e.g., providing a key for HMAC, specifying an encoding, or listing desired algorithms).

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.

Resources