Skip to main content
Glama

Decode an Ekubo pool config

decode_pool_config
Read-only

Decode the packed bytes32 extension, exact uint64 Q64 fee, concentrated/stableswap discriminator, and tick spacing or stableswap parameters. The fee is never returned as a JSON number.

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": {
      "config": "<config>"
    },
    "name": "decode_pool_config"
  }
}

Input Schema

NameRequiredDescriptionDefault
configYesbytes32 hex

Output Schema

NameRequiredDescriptionDefault
decoded_configNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • removedOutput schema / properties / config
      Removed value: -{
      -  "type": "string"
      -}
    • addedOutput schema / properties / decoded_config
      Added value: +{
      +  "properties": {
      +    "config": {
      +      "type": "string"
      +    },
      +    "discriminator_bit_set": {
      +      "type": "boolean"
      +    },
      +    "extension": {
      +      "type": "string"
      +    },
      +    "fee": {
      +      "type": "string"
      +    },
      +    "fee_hex": {
      +      "type": "string"
      +    },
      +    "pool_type": {
      +      "enum": [
      +        "concentrated",
      +        "stableswap",
      +        "full_range"
      +      ],
      +      "type": "string"
      +    },
      +    "stableswap_params": {
      +      "properties": {
      +        "amplification": {
      +          "type": "integer"
      +        },
      +        "center_tick": {
      +          "type": "integer"
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "tick_spacing": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "type_config": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedOutput schema / properties / discriminator_bit_set
      Removed value: -{
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / extension
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / fee
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / fee_hex
      Removed value: -{
      -  "type": "string"
      -}
    • removedOutput schema / properties / pool_type
      Removed value: -{
      -  "enum": [
      -    "concentrated",
      -    "stableswap",
      -    "full_range"
      -  ],
      -  "type": "string"
      -}
    • removedOutput schema / properties / stableswap_params
      Removed value: -{
      -  "properties": {
      -    "amplification": {
      -      "type": "integer"
      -    },
      -    "center_tick": {
      -      "type": "integer"
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / tick_spacing
      Removed value: -{
      -  "type": [
      -    "integer",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / type_config
      Removed value: -{
      -  "type": "string"
      -}
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), and the description adds a real behavioral caveat an agent could otherwise get wrong: 'The fee is never returned as a JSON number' flagging precision/big-number handling. It does not cover failure behavior for a malformed or non-bytes32 input, which keeps it below a 5.

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

Conciseness5/5

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

Two sentences, both load-bearing: the first lists the decoded fields up front, the second is a non-obvious output caveat. No filler, no restating of the title.

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?

Output schema exists, so return values need not be explained, and the annotations plus one parameter make this a simple tool. Missing only the provenance of the config bytes and error behavior, which would fully close the loop for an agent calling it blind.

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?

Only one parameter and schema description coverage is 100% ('bytes32 hex'), so the schema already carries the burden. The description implies the bytes32 is a packed layout of the enumerated fields, which adds mild meaning, but no format examples or validity constraints beyond 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?

Names a specific verb (decode) and a specific resource (pool config) and enumerates exactly what is unpacked: extension bytes32, uint64 Q64 fee, concentrated/stableswap discriminator, tick spacing or stableswap params. The Ekubo-specific field vocabulary separates it from decode_uniswap_v4_position_info, though the description itself never says 'Ekubo' or names a sibling explicitly (only the title does).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance: no statement of what upstream source produces the packed bytes32, no mention of get_pool/list_pool_keys as the way to obtain a config, and no exclusions versus derive_pool_id or get_pool. Use is only inferable from the fact that the input is a raw bytes32.

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.