Skip to main content
Glama

Agent Data Hub

Hash text (SHA-256, MD5, Keccak-256, …)

util_hash
Read-onlyIdempotent

Hash text or bytes with md5, sha1, sha256, sha512, sha3-256, keccak256 (Ethereum) and crc32 — one algorithm, a list, or all at once. Input as UTF-8 text, hex or base64. Returns lowercase hex digests (keccak256 with 0x). Deterministic; up to 100,000 characters. Price: $0.001 per call (USDC on Base via x402); the first 10 calls per day are free.

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": {
      "text": "<text>"
    },
    "name": "util_hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to hash (or hex/base64, see input_encoding)
algorithmNomd5, sha1, sha256, sha512, sha3-256, keccak256, crc32, a comma list, or 'all' (default all)
input_encodingNoutf8 (default), hex or base64

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior, yet the description still adds real value: output form ('lowercase hex digests, keccak256 with 0x'), determinism, a 100,000-character input ceiling, and a pricing/rate-limit model ($0.001 per call, 10 free calls per day). The only notable gap is that error behavior for invalid hex or unknown algorithms isn't described.

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?

Front-loaded with the action and algorithm set, then encoding, output format, limits, and pricing in short sequenced clauses. No filler or redundancy; every sentence carries distinct information.

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 three-parameter, stateless hashing tool with full schema coverage and no output schema, the definition supplies everything needed: supported algorithms, input encodings, response format, size limit, and cost model. Nothing material to correct invocation is missing.

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 the baseline is 3; the description restates the same facts (algorithm list, encodings) rather than adding constraint detail such as case sensitivity for algorithm names or how 'all' expands. The output-format note is useful but pertains to results, not parameters.

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 ('Hash text or bytes') and enumerates the exact algorithms supported (md5, sha1, sha256, sha512, sha3-256, keccak256, crc32), which plainly separates it from neighboring utilities like util_encode or util_uuid.

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 explains input forms ('UTF-8 text, hex or base64') and that one, a list, or 'all' algorithms can be requested, which implicitly tells an agent how to call it. It never states when-not to use it or points to a sibling such as util_encode for reversible encoding, so routing guidance is only implied.

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