Skip to main content
Glama

Duo Data Utilities

SHA-2, SHA-3, BLAKE2 and HMAC digests of supplied text or base64 bytes

code_hash
Read-onlyIdempotent

Compute a cryptographic digest of supplied data: SHA-256, SHA-384, SHA-512, SHA-1, SHA3-256, SHA3-512, Keccak-256, BLAKE2b-256 and BLAKE2b-512, plus HMAC with any of them. Input is UTF-8 text, base64 or hex bytes; output is hex, base64, base64url or base32. Returns the digest, the byte length of the input, and the exact algorithm identifier used. Price: $0.05 per successful call, paid over x402 (USDC on Base).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
outNoDigest output encoding: hex (default), base64, base64url or base32. Accepted: hex, base64, base64url, base32.
algoYesDigest algorithm. Accepted: sha256, sha384, sha512, sha1, sha3-256, sha3-512, keccak256, blake2b-256, blake2b-512.
dataYesInput data, interpreted per encoding. At most 8192 characters. An empty value hashes the empty string. Accepted: at most 8192 characters.
encodingNoEncoding of data: utf8 (default), base64, base64url or hex. Accepted: utf8, base64, base64url, hex.
hmac_keyNoIf present, computes HMAC with this key. Accepted: at most 512 characters.
hmac_key_encodingNoEncoding of hmac_key, as encoding. Accepted: utf8, base64, base64url, hex.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations cover the safe, read-only, idempotent nature. Beyond that, the description discloses the paid x402/USDC cost model, supported algorithm families, input/output encodings, HMAC key support, and the exact return payload contents, which is rich behavioral context.

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?

The description is a single dense paragraph, front-loads the core operation and algorithm support, then adds encoding details, return shape, and pricing. Every sentence carries information useful for selection or invocation.

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?

For a six-parameter cryptographic tool with no output schema, the description explains the main return values: digest, input byte length, and algorithm identifier. It does not specify exact output field names or error payloads, but the agent has enough to invoke it correctly.

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 all six parameters already have enum or constraint descriptions in the schema. The description restates the algorithm and encoding options but adds little syntactic or default detail beyond what the schema provides.

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 states a specific verb+resource: compute a cryptographic digest of supplied data. It enumerates supported algorithms, HMAC, input encodings, output encodings, and return contents, so the agent can identify exactly what the tool does without opening the schema.

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

Usage Guidelines3/5

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

The description implies usage through a detailed capability list, but it does not explicitly state when to use this tool versus alternatives or when not to use it. No sibling tool competes for hashing, so the gap is modest but present.

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