Skip to main content
Glama

Ekubo Protocol

Prepare Uniswap V2 liquidity deposit

prepare_uniswap_v2_add_liquidity
Read-only

Add liquidity or create a V2 pair with exact token approvals and cleanup. Amounts are raw units; sorted token0/token1 and explicit minimum outputs are required. use_native pays ETH for the wrapped-native side. Execute atomically through the wallet.

Input Schema

NameRequiredDescriptionDefault
senderYesaddress
token0Yesaddress
token1Yesaddress
amount0Yesdecimal integer
amount1Yesdecimal integer
chain_idYes
deadlineYesdecimal integer
use_nativeNo
amount0_minYesdecimal integer
amount1_minYesdecimal integer

Output Schema

NameRequiredDescriptionDefault
execution_plan_referenceNoartifact_reference; pass unchanged

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

The annotations only declare readOnlyHint=true, so the description carries the real behavioral load and delivers: it discloses that approvals and cleanup are bundled, that execution is atomic and routed through the wallet, and that use_native pays ETH for the wrapped-native side. The "Execute atomically through the wallet" clause resolves the apparent tension between the mutating verb "Add" and readOnlyHint, making clear the tool prepares rather than submits. It could still say more about what "cleanup" resets and what the returned payload contains, but that is minor given the output schema exists.

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?

Four dense sentences, front-loaded with the action and its two branches before dropping into constraints. Nearly every clause carries new information, though "cleanup" is under-explained for a term doing real behavioral work.

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 10-parameter, 9-required transaction-building tool with an output schema, this covers the failure-prone parts: raw-unit amounts, token ordering, slippage minimums, native-ETH handling, and atomic bundled execution. Deadline semantics and chain_id applicability are the only notable omissions, and the output schema absorbs the return-value question.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 80% schema coverage the baseline is 3, and the description earns above that by adding meaning the schema lacks: amounts are raw units (not decimal-adjusted), token0/token1 must be pre-sorted, and minimum outputs are required rather than optional. The one genuinely useful addition would be deadline semantics, which is unaddressed in both places.

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 opening sentence names a specific verb and resource ("Add liquidity or create a V2 pair") and adds the distinguishing detail of bundling exact token approvals and cleanup. It clearly separates this from the remove-liquidity sibling, though it never names the v3/v4 add-liquidity variants it competes with by name alone.

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: the description establishes that this is for V2 deposits and mentions the "create a V2 pair" branch, but there is no explicit when-to-use versus prepare_uniswap_v3_add_liquidity, prepare_uniswap_v4_add_liquidity, quote_uniswap_liquidity, or prepare_lp_position_deposit. The prerequisites it does list (sorted tokens, explicit minimums) hint at the calling context without ever stating when not to reach for this tool.

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.