Skip to main content
Glama

BLAKE2b / twox128 / Base58 (dev tool)

hash_tool
Read-onlyIdempotent

Hashing and encoding of PUBLIC data: op=blake2b (hex data, out_len bytes 1-64, optional personal), twox128 (text, Substrate xxHash), base58_encode (hex data), base58_decode (base58 text; plain Base58, no checksum). Pure, offline computation (blocktools); nothing is fetched or stored. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).

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": {
      "op": "<op>"
    },
    "name": "hash_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
dataNo
textNo
out_lenNo
personalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the description adds value by confirming nothing is fetched or stored and by flagging that base58_decode is plain Base58 with no checksum. It stops short of stating failure behavior for invalid hex or output encoding format.

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 operation list is front-loaded and dense with no filler, but the trailing 'How to combine this with the other tools' sentence plus its workflow enumeration reads as promotional and is not needed to invoke this tool.

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 low-complexity, no-output-schema utility, the description covers all ops, parameter mapping, purity and safety context. The one meaningful omission is what the return value looks like (hex vs base58 string per op), which an agent would have to infer.

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 description coverage is 0%, so the description must carry the load, and it largely does: it maps each op to its relevant parameter (data for blake2b/base58_encode, text for twox128/base58_decode), states out_len's 1-64 range and that it applies to blake2b, and marks personal as optional. The maxLength bounds on data/text and the exact meaning of 'personal' (BLAKE2b personalization) remain unstated.

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?

Names the exact resource (hashing/encoding) and enumerates all four operations with their input kinds (blake2b on hex data, twox128 on Substrate text, base58 encode/decode). This makes it trivially distinguishable from siblings like substrate_tool or address_tool, which also touch encoding.

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?

The 'PUBLIC data' framing and 'pure, offline computation' note imply safe, local use, and the per-op input descriptions help pick an op. However, there is no explicit statement of when to reach for this tool versus address_tool/substrate_tool, and the closing pointer to swapchan_playbook lists workflow names rather than routing conditions.

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.