Skip to main content
Glama

hash_text

Read-onlyIdempotent

utilpeek: Hash text or bytes: sha256, keccak256, blake2b, md5, crc32, ... For a keyed HMAC use hmac_sign_verify. Returns hex digests of the text (as UTF-8) or base64 bytes you send. md5 and sha1 are for checksums, not security. Send exactly one of text or base64 (else 422 invalid_request); bad base64 is a 422 invalid_base64. The input is never echoed. Typically under 0.1 s (keccak256 about 2 s per MB). Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/hash-text-api.html

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "hash_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoText, hashed as UTF-8 (at most 1 MB); send text OR base64.
base64NoRaw bytes as standard base64 (at most 1 MB decoded); send text OR base64.
algorithmsNoAny of md5, sha1, sha256 (default), sha512, sha3_256, blake2b, keccak256, crc32.

Output Schema

NameRequiredDescriptionDefault
noteNo
bytesNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
inputNo
sourceNo
digestsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedInput schema / properties / algorithms / title
      Removed value: -"Algorithms"
    • removedInput schema / properties / base64 / default
      Removed value: -null
    • removedInput schema / properties / base64 / title
      Removed value: -"Base64"
    • removedInput schema / properties / text / default
      Removed value: -null
    • removedInput schema / properties / text / title
      Removed value: -"Text"
    • removedInput schema / title
      Removed value: -"hash_textArguments"
    • removedOutput schema / properties / digests / properties
      Removed value: -{
      -  "blake2b": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "crc32": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "keccak256": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "md5": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "sha1": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "sha256": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "sha3_256": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "sha512": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / source / properties
      Removed value: -{
      -  "library": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "license": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "bytes": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "digests": {
      +      "properties": {
      +        "blake2b": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "crc32": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "keccak256": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "md5": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "sha1": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "sha256": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "sha3_256": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "sha512": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "input": {
      +      "enum": [
      +        "text",
      +        "base64",
      +        null
      +      ],
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "properties": {
      +        "library": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "license": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description still adds substantial beyond-schema behavior: specific 422 error codes for invalid_request and invalid_base64, no echo of input, no logging/storage of submitted text, and per-MB latency for keccak256. Pricing and free-tier limits are also disclosed, which an agent may need before calling.

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?

Dense but front-loaded: purpose first, then sibling routing, then constraints, then performance and pricing. Every clause carries information, though the trailing docs link and price/free-tier line sit at the edge of necessity for a hashing tool.

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?

Given a 3-parameter, zero-required tool with 100% schema coverage and an output schema, the description covers everything the agent needs: mutual exclusion rule, error behavior, encoding, performance, and cost. It even describes the return shape (hex digests / base64), which the output schema makes optional but is not harmful.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds a constraint the schema does not enforce — exactly one of text or base64 must be sent, else 422 invalid_request — plus the encoding semantics (UTF-8 for text). The keccak256 per-MB timing note gives practical meaning to the algorithms parameter that the enum alone does not convey.

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?

Opens with a specific verb+resource ("Hash text or bytes") and enumerates concrete algorithms (sha256, keccak256, blake2b, md5, crc32). It also distinguishes itself from the nearest sibling by naming hmac_sign_verify for the keyed case, so the agent can route without opening schemas.

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?

Explicitly redirects keyed-hash use cases to hmac_sign_verify and warns that md5/sha1 are for checksums, not security — genuine selection guidance. It also states the one-of text/base64 rule. It stops short of a full when-not matrix (e.g., vs. image_hash or text_encode), but the covered ground is clearly stated.

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