Skip to main content
Glama

P0: agent memory and utilities

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 a link to the full schema; 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. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/openWorld, so the description carries the real behavioral burden and does: it discloses the x402 payment model, the $0.001 per-call price, the GET /util/hash endpoint, the P0 bearer-key path that makes the call server-side, and critically that bad input is refused before any charge. That pricing and pre-charge validation detail is exactly the context an agent needs before invoking a paid tool.

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?

The triggering condition and core capability are front-loaded, and every clause carries information (algorithms, size cap, payment path, key header). It is nevertheless a single run-on sentence that packs the key-purchase URL inline, which is dense enough to slow parsing of the two invocation modes.

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?

There is no output schema, and the description covers both the unpaid mode (returns an x402 request to replay) and the keyed mode (returns the actual digest), plus price and validation behavior, which is enough to call it correctly. The return payload shape in the unpaid mode remains slightly ambiguous in how it is phrased, keeping it just below 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 description coverage is 100%, so all three parameters are already documented, including the enum for encoding and the comma-list semantics for algo. The description restates the algorithm and encoding options and adds the 64 KB bound (already implied by maxLength), so it adds little meaning beyond the schema; 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?

The description states a precise verb and resource: compute a checksum/digest of a string, with the supported algorithms (sha256 default, sha1, sha384, sha512, md5) and the input encodings (utf8, hex, base64). It is distinguishable from adjacent siblings such as util_base64 or util_uuid because the hashing domain is stated explicitly.

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 a clear triggering condition, and the description scopes usage with the 64 KB limit and the "no external call" / paid-call distinction. It stops short of naming when-not to use it or pointing at an alternative sibling, so it is clear context rather than full routing guidance.

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