Skip to main content
Glama

Ekubo Protocol

Derive an Ekubo pool ID

derive_pool_id
Read-only

Pack or accept an exact PoolKey config and derive pool_id = keccak256(abi.encode(PoolKey)). The uint64 Q64 fee is string-only so JavaScript cannot silently round it.

Input Schema

NameRequiredDescriptionDefault
pool_keyYes

Output Schema

NameRequiredDescriptionDefault
pool_idNo
pool_keyNo
decoded_configNo
pool_id_decimalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is largely covered; the description adds that the result is a deterministic keccak256 hash of the encoded key. It does not say what happens with malformed hex, mismatched token ordering, or whether the output is checksummed, so it goes only modestly beyond the structured fields.

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?

Two dense sentences with the derivation formula front-loaded and no filler. The second sentence on fee string encoding is useful but reads as a schema note rather than tool-level guidance.

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 one required nested parameter and an output schema that covers the return value, the description supplies the essential computation and the encoding constraint. It could still note the ordering requirement for token0/token1 or the relationship to decode_pool_config, but nothing critical is missing.

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?

The nested schema already documents token0, token1, fee, config, extension, tick_spacing, and stableswap_params individually, so the schema does most of the work. The description only reinforces that pool_key must be an exact, complete configuration and repeats the fee-as-string rationale already present in the schema.

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 a specific verb and result: derive pool_id = keccak256(abi.encode(PoolKey)) from an exact PoolKey config. That clearly distinguishes it from decode_pool_config and list_pool_keys, though the opening phrase 'Pack or accept' is slightly ambiguous about whether it encodes a supplied key or accepts a pre-packed one.

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 only implied: you need a pool_id and have the PoolKey fields. There is no explicit statement of when to prefer this over decode_pool_config (the inverse) or list_pool_keys, and no prerequisites or failure conditions are mentioned.

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.