putty
MCPBlockchainDeFi

build_lp_decrease_position

Build the calldata to remove liquidity from an existing V2, V3, or V4 LP position. POSTs to `/v1/lp/decrease` with the wallet, position identifier (NFT token id for V3/V4, token pair for V2), and the percentage of liquidity to remove. The server derives all position state from on-chain data. Returns the raw `/lp/decrease` response — the unsigned transaction fields the caller's wallet signs and submits. The Putty dashboard signs through the user's Privy embedded wallet in the sign-request modal; external agents sign with their own wallet. The tool never holds a signing key.

Build the calldata to remove liquidity from an existing V2, V3, or V4 LP position. POSTs to /v1/lp/decrease with the wallet, position identifier (NFT token id for V3/V4, token pair for V2), and the percentage of liquidity to remove.

Input

The tool takes a single JSON object. Every field, its type, and an example are on the generated reference at GET /mcp/tools, under this tool's name.

Calling it

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "build_lp_decrease_position", "arguments": {} }
}

Put your arguments in place of the empty object. A call that fails comes back as a normal result carrying isError: true and a message naming what went wrong, not as a JSON-RPC protocol error.

Notes

The server derives all position state from on-chain data. Returns the raw /lp/decrease response — the unsigned transaction fields the caller's wallet signs and submits. The Putty dashboard signs through the user's Privy embedded wallet in the sign-request modal; external agents sign with their own wallet. The tool never holds a signing key.

The full request and response shape, and a live playground, live on the generated reference at GET /mcp/tools.

On this page