Skip to main content
Glama

Ekubo Protocol

Decode Uniswap V4 position info

decode_uniswap_v4_position_info
Read-only

Decode the packed PositionInfo returned by wallet reads into signed tick bounds, subscriber flag and the truncated pool-ID prefix. This is local integer decoding, not a state query.

Input Schema

NameRequiredDescriptionDefault
infoYesdecimal integer

Output Schema

NameRequiredDescriptionDefault
tick_lowerNo
tick_upperNo
instructionNo
has_subscriberNo
pool_id_prefixNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

readOnlyHint=true and openWorldHint=false already signal a safe, non-networked operation; the description reinforces this by characterizing the work as local integer decoding rather than a state query. Beyond that reinforcement it adds little about failure modes, e.g. what happens with a malformed or out-of-range integer, and the returned fields are already carried by the output schema.

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 tight sentences with zero filler; the decoded outputs come first and the disambiguating 'not a state query' note closes. Every clause earns its place.

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 one-parameter pure decode function with an output schema and clear read-only annotations, the description is essentially sufficient. A minor gap remains around input expectations (e.g. accepted magnitude, whether the value must come from a specific wallet-read surface), but nothing needed to invoke it correctly 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?

Schema description coverage is 100% with a single required param ('info', decimal integer), so the baseline is 3. The description does add the provenance of that value — it is the packed PositionInfo returned by wallet reads — which helps an agent source it correctly, but adds no formatting or range guidance beyond the schema.

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 ('Decode the packed PositionInfo') and immediately enumerates the decoded outputs (signed tick bounds, subscriber flag, truncated pool-ID prefix), so an agent knows exactly what it gets back. The closing clause distinguishes it from the many state-query siblings like get_position and get_positions_by_owner.

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 line 'This is local integer decoding, not a state query' implicitly tells the agent to reach for this after a wallet read rather than instead of one, and rules out on-chain lookup. However, it never names the adjacent decoding sibling (decode_pool_config) or states explicitly 'use this when you already have the raw positionInfo value'.

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.