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.

Input Schema

TableJSON 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.4/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, but the description adds the crucial non-obvious behaviors: this is a paid endpoint ($0.001/call), it returns an x402 request spec rather than the digest directly, invalid input is refused before any charge, and there is a 64 KB cap. Those are exactly the traits an agent cannot infer from 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.

Conciseness4/5

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

Two dense sentences with the usage trigger front-loaded and no filler. It is on the longer side, but nearly every clause (pricing, URL, client requirement, input validation) carries distinct operational value.

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?

No output schema exists, so the description correctly explains what is returned (the exact paid request, response schema and example) and how to turn it into the actual digest. Combined with fully documented parameters, an agent has everything needed to call 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 coverage is 100%, so algo, text and encoding are already documented with enums and defaults. The description largely restates that (algorithm list, encoding list, size limit), adding no new syntax or format guidance beyond what the schema provides, so the 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?

States a specific verb+resource (checksum/digest of a string) and enumerates the supported algorithms and encodings. It is immediately distinguishable from siblings like util_base64 and util_jwt_decode without opening either schema.

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 trigger condition, and the second sentence explains the actual invocation flow (call the returned URL with an x402/MPP client). It does not, however, name alternatives or explicitly exclude sibling utilities, so a 4 rather than 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.