Skip to main content
Glama

Util hash

util_hash
Read-onlyIdempotent

Use when you need a checksum or digest of a string: sha256 (default), sha1, sha384, sha512 and md5 of text given as utf8, hex or base64 (up to 64 KB), hex digests, no external call. Returns the exact paid x402 request for your input (GET /util/hash, $0.001 per call), with the response schema and an example; call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. With a P0 access key (header Authorization: Bearer p0k_…, buy one at https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/keys/buy?usd=5) this tool makes the paid call itself and returns the data, deducting the listed price.

Input Schema

NameRequiredDescriptionDefault
algoNoComma list of sha256, sha1, sha384, sha512, md5 or allsha256
textYesInput to hash
encodingNoHow text is encodedutf8

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Well beyond the annotations: it discloses cost ($0.001 per call), that bad input is refused before any charge, that the default behavior performs no external call and instead returns a ready-to-execute x402 request, and that supplying a Bearer p0k_ key causes the tool to make the paid call and deduct the price. These are exactly the operational facts an agent needs and none are in the structured fields.

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

Conciseness3/5

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

The trigger is front-loaded correctly, but the body is a dense run-on that mixes three distinct concerns (hashing parameters, payment mechanics, key purchase URL) into one sentence chain. The key-buy URL and purchase instructions are verbose relative to their decision weight.

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 carries the return-value burden and mostly does: it explains that the default path returns an x402 request plus response schema and example, while the keyed path returns the digest itself. The dual return mode is slightly ambiguous about which shape you get, keeping it from a 5.

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 coverage is 100%, so the schema already documents algo, text, and encoding including defaults and the enum. The description adds only the 64 KB size limit and the notion of hex digests as output, which is minimal marginal value over the schema, so baseline 3 applies.

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?

Opens with a specific verb and resource: compute a checksum/digest of a string, and enumerates supported algorithms (sha256 default, sha1, sha384, sha512, md5) and input encodings. This clearly separates it from sibling util_* tools like util_base64 or util_jwt_decode.

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 when you need a checksum or digest of a string" gives an explicit trigger condition, and the flow states when the paid-call path applies (P0 access key present) versus when you only get the x402 request to execute yourself. It does not explicitly name a competing sibling or state when not to use it, so it stops short of a 5.

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