Skip to main content
Glama

hash

Returns the hex and base64 digest of the input text. Default algorithm sha256. 0.001 USDC per call via x402.

Input Schema

NameRequiredDescriptionDefault
algoNosha1, sha256, sha384 or sha512sha256
textYesInput text (max 20,000 characters)
paymentProofNoPayment proof: USDC tx hash on Polygon or Base (0x...) or Solana tx signature. Omit on the first call to receive the 402 payment instructions, pay, then call again with the proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the output formats and the 0.001 USDC per-call cost, but does not explain that the first call may return a 402 payment challenge or that hashing is deterministic/stateless beyond the schema's paymentProof note.

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?

Three compact sentences with the core return behavior front-loaded, followed by the default algorithm and payment cost. There is no filler, and each sentence contributes context an agent needs.

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?

For a simple hashing utility with no output schema, the description covers what is returned and the default algorithm. The payment flow is complex but is fully delegated to the schema's paymentProof field, so the description is nearly complete, with only minor room to mention the 402 handshake.

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 input schema already documents text, algo, and paymentProof in detail. The description adds only the default algorithm and pricing context, which is useful but does not meaningfully extend parameter semantics beyond the schema baseline.

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 specific verb and resource: it returns the hex and base64 digest of input text. It also names the default algorithm and the payment model, so an agent can immediately distinguish this hashing tool from siblings like base64 or text_stats.

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?

Usage is implied by 'digest of the input text' and the default sha256, but the description does not explicitly say when to use this tool versus alternatives such as base64 or other utility tools. It also omits the practical first-call/payment flow, leaving that to the schema.

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.