Skip to main content
Glama

Merkle Tree Builder

security_merkle_tree

Build a keccak-256 sorted-pair merkle tree (OpenZeppelin convention) from a list of leaves and get the root plus a verification proof for any leaf — the standard construction for token airdrops and allowlists. Fully deterministic: same leaves, same root. Use this when an agent needs to root + proofs for airdrops and whitelists. x402 price $0.01/call (USDC, eip155:8453).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
leavesYesLeaves (one per line)
proofForYesExact line to generate the inclusion proof for

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses determinism, the hashing construction, the return shape (root + proof), and payment model, which is real added context. However it omits key behavioral traits for a merkle tool, such as whether leaves are hashed before insertion or how duplicates are handled, leaving ambiguity in a domain where that matters.

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?

Front-loaded with the core construction and result, and the price note is tidily placed last. It loses a point for mild redundancy, mentioning airdrops/allowlists once in the opening and again in the usage sentence.

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 two-parameter tool with full schema coverage and no output schema, the description adequately explains what is returned (root plus proof) and the deterministic guarantee. The only real omission is leaf preprocessing semantics, which is a nuance rather than a blocking gap.

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 schema already documents both parameters ('Leaves (one per line)' and 'Exact line to generate the inclusion proof for'). The description restates the list-of-leaves and proof-for-any-leaf idea without adding format or syntax detail 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.

Purpose5/5

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

States a specific verb and resource (build a merkle tree) plus the exact construction (keccak-256 sorted-pair, OpenZeppelin convention) and intended use (airdrops, allowlists). No sibling tool overlaps, and the algorithm-level detail makes it unmistakable.

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 says when to use it: 'Use this when an agent needs to root + proofs for airdrops and whitelists.' Since no sibling does anything similar, there is no alternative to route against, so the absence of an explicit 'when-not' is minor.

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