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 paid x402 request for your input (GET /util/hash, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. First call each day returns the data itself, free; later calls return the paid request.

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
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 only declare read-only/idempotent/open-world, but the description goes much further: it discloses the $0.001 per-call price, that the return value is an x402 payment request rather than data, that the first call each day is free, and that bad input is rejected before charging. These are non-obvious behavioral traits an agent must know to act correctly.

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 use trigger is front-loaded and the pricing/return-flow details are relevant rather than filler. It is slightly dense and run-on (the payment sentences could be tightened), and 'hex digests' is redundant with the encoding list.

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?

With no output schema, the description fully explains the two possible return shapes (free data on the first daily call vs. a paid request URL), the size cap, and the failure behavior. Nothing an agent needs to invoke and interpret this tool 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 algo, text, and encoding are already documented. The description restates the algorithm list and the 64 KB limit but adds no format or precedence detail beyond the schema, 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 and resource ('checksum or digest of a string') and enumerates the supported algorithms and encodings, so an agent can distinguish it from util_base64 or util_jwt_decode without opening the 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?

Opens with an explicit trigger ('Use when you need a checksum or digest of a string'), which is a clear when-to-use condition. It does not name a when-not case or an alternative sibling, but the purpose is narrow enough that overlap is unlikely.

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