Skip to main content
Glama

ScorpTech x402 Tools

Hash Encode

hash_encode
Read-onlyIdempotent

Hashing, HMAC and encoding toolkit: digests (MD5, SHA-1/2/3, Keccak-256 as used by Ethereum, RIPEMD-160, Whirlpool, CRC32/CRC32C, Adler-32, FNV-1a, xxHash32/64/3/128, MurmurHash3), HMAC (SHA-1/2/3, MD5) with hex or base64 output, encode/decode between UTF-8, hex, base64, base64url, base32, base58 and URL encoding, identification of what a string is (hash type by length, UUID version, JWT, bcrypt/argon2, EVM address with EIP-55 checksum, Bitcoin/Solana address, base64, timestamps) and UUID v4/v7 or random-bytes generation. Offline. Returns JSON with: input, hashes, hmac, notes, encodings, identify. Price: $0.005 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/hash-encode

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_encode"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoInput string (max 100 KB), interpreted per input_encoding
hashesNoDigest algorithms, or "all" (default md5, sha1, sha256, sha512, sha3-256, keccak256, crc32b)
generateNoOptional generation instead of / besides input: {"uuid": "v4"|"v7", "count": 1-100} and/or {"random_bytes": 1-1024}
hmac_keyNoOptional HMAC key (never echoed)
identifyNoGuess what the input string is (default true)
encodingsNoOutput encodings (default hex, base64, base64url, base32, base58, url)
input_encodingNoutf8 (default), hex, base64, base64url, base32, base58 or url: decode the input to bytes first
hmac_algorithmsNoHMAC algorithms (default sha256)
hmac_key_encodingNoutf8 (default), hex, base64, base64url

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely new operational context: it runs offline, costs $0.005 USDC per successful call via x402, is also reachable over HTTPS at a given endpoint, and returns JSON with named keys. The only gap is that it doesn't state error behavior or whether a failed call is charged.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It is front-loaded with the core capability, but the algorithm catalog is a long comma-run that could be compressed, and the pricing plus HTTPS endpoint sentences compete with the functional description. It is dense rather than padded — every clause carries some information — but the length-to-signal ratio is only fair for a single tool definition.

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 9 parameters, a nested generate object, and no output schema, the description compensates by listing the returned keys (input, hashes, hmac, notes, encodings, identify) and by stating the input size cap and payment model. What's left unstated — the shape of the identify result and error/charge semantics — is modest compared to what is covered.

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 every one of the 9 parameters (including the nested generate object and the algorithm arrays) is already documented in structured form. The description corroborates the algorithm vocabulary and the identify categories but adds no syntax, defaults, or constraints 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.

Purpose4/5

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

The description names concrete verbs and resources — digests, HMAC, encode/decode, identification, UUID generation — and enumerates the specific algorithms supported (Keccak-256, xxHash, base58, etc.), so an agent knows exactly what capability is offered. It does not, however, differentiate itself from adjacent siblings like password_hash or eip712_hash, leaving overlap resolution to the agent.

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 the capability list ('Offline', per-call pricing, list of inputs it handles), which is enough to know this is the general-purpose hashing/encoding tool. There is no explicit when-to-use versus when-not-to-use guidance, no pointer to password_hash for password-style hashing or eip712_hash for typed-data hashing, so routing among similar siblings is left to inference.

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