Skip to main content
Glama

chain_keccak

Read-only

Keccak-256 hash (Ethereum) + ENS namehash — Ethereum Keccak-256 of a UTF-8 string or raw hex bytes (encoding=hex), returning the 32-byte hash, the first 4 bytes and the uint256 value; for dotted names (vitalik.eth) also returns the ENS namehash and labelhash. Uses original Keccak padding (what Solidity keccak256 and ethers.id compute), not NIST SHA3-256. text= required; encoding= utf8 (default) or hex. Offline. Price: $0.001 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
textYestransfer(address,uint256)

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?

Beyond the readOnlyHint/destructiveHint annotations, it discloses that the computation is offline and that invocation costs $0.001 USDC on Base via x402 — a material behavioral fact an agent must know before calling. It also spells out the return payload shape. The 'Offline' claim sits slightly awkwardly beside openWorldHint=true, but that reflects payment rails rather than a real inconsistency.

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?

One dense paragraph but well front-loaded: purpose first, then output shape, then the SHA3 disambiguation, then parameter notes, then cost. Every clause carries information, though the packing of output fields, encoding, and pricing into a single run-on reduces scannability slightly.

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 does the right thing by enumerating return values, and it adds cost, offline behavior, and ENS handling for a single-parameter tool. The gap is the unexplained `encoding` parameter and no note on whether hex input needs a 0x prefix.

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% for `text`, so the baseline would be 3 regardless, and the description adds a useful example format. However, it documents an `encoding` parameter (utf8 default / hex) that does not appear in the input schema at all, which muddies rather than clarifies the actual call surface.

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 names a specific verb+resource (Keccak-256 hash of a UTF-8 string or raw hex bytes), enumerates exactly what is returned (32-byte hash, first 4 bytes, uint256 value, plus ENS namehash/labelhash for dotted names), and explicitly distinguishes itself from NIST SHA3-256. An agent knows precisely what comes back without opening the schema.

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?

It gives a clear selection rule against the nearest confusing alternative: 'Uses original Keccak padding (what Solidity keccak256 and ethers.id compute), not NIST SHA3-256,' which prevents the most likely misuse. It also explains the ENS trigger condition ('for dotted names'). It does not name a sibling tool as an alternative, so it lands at 4 rather than 5.

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