Skip to main content
Glama

Duo Data Utilities: IBAN, VAT, ISIN Validation API

SHA-256/HMAC hash generator: SHA-256, SHA-512, SHA-3, Keccak-256, BLAKE2 and HMAC digests

hash_generate
Read-onlyIdempotent

Hash generator: 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).

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

Input 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. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world behavior, so the safety profile is covered. The description adds genuinely non-obvious context beyond that: the $0.05 per-successful-call price paid over x402 (USDC on Base), and exactly what is returned (digest, input byte length, resolved algorithm identifier). It does not discuss failure modes or what happens on invalid encodings, keeping it short of a 5.

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?

Front-loaded with the core action and algorithm list, then encodings, then return values, then price — a sensible order with no filler sentences. The long algorithm enumeration duplicates the schema enum, which is mild redundancy, but each clause carries information.

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?

With no output schema, the description compensates by naming the return payload (digest, input byte length, algorithm identifier), and it discloses the payment requirement, which an agent must know before calling. Input size limits and encoding constraints live in the schema. Error behavior and rate limits are unstated but minor for a pure function.

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 every parameter has an enum plus description, so the schema does the heavy lifting. The description restates the input encoding options (UTF-8, base64, hex) and output encodings, and clarifies that HMAC works with any listed algorithm, but adds little syntax or interaction detail beyond the schema — baseline 3.

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?

States a specific verb and resource ('compute a cryptographic digest of supplied data') and enumerates the exact algorithm families supported, so an agent can immediately tell this apart from unrelated siblings like jwt_decode or base_convert. The scope (digest computation, HMAC variant, encodings) is fully pinned down.

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?

Usage is implied by the description — you call it when you need a hash of some data — but there is no explicit when-to-use/when-not guidance and no named alternative (e.g., when to prefer jwt_decode for token inspection instead). Adequate for a self-contained utility, but no routing help.

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.