Skip to main content
Glama

Agent Data Tools: Utilities

SHA256 hash, SHA-256: hash text with SHA-256, SHA-1, SHA-384 or SHA-512

hash
Read-only

SHA256 hash of UTF-8 text (SHA-256 by default; SHA-1, SHA-384 or SHA-512 on request), returned as a digest in hex and base64. Use for checksums, cache keys and deduplication. Example: text=hello. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": "hash"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to hash
algorithmNosha256 (default), sha1, sha384 or sha512

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false and idempotentHint=false, and the description reinforces the safety profile ('reads or computes only and changes nothing'). It adds genuinely useful context the annotations lack: the $0.002/call price, that failed calls are free, and that repeated calls are not free — coherent with idempotentHint=false. However, it says nothing about digest length, encoding details or latency beyond the pricing note, so it is only a modest step above the annotation baseline.

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?

Three front-loaded sentences covering purpose, use cases and cost, then a short example. The 'Price $0.002/call via x402 USDC or a card key (/credits), first 10 free' clause is dense but earns its place as billing context.

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 correctly compensates by naming the return form (hex and base64 digest). Combined with the algorithm list and cost model, an agent has enough to call it correctly, though exact digest encoding details remain implicit.

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 the baseline is 3; both 'text' and 'algorithm' are already documented in the schema. The description restates the algorithm choices and adds a trivial 'text=hello' example, but contributes no new meaning such as default behavior on invalid algorithm values.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('SHA256 hash of UTF-8 text') and enumerates the supported algorithms plus the output form (hex and base64), so an agent knows exactly what it gets. It does not differentiate itself from the sibling pack_hash_toolbox, which keeps it from a 5.

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?

Gives concrete use cases — checksums, cache keys, deduplication — which tells an agent when this tool is the right pick. It offers no exclusions or named alternatives, so it falls short of explicit when-not 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