build_lp_withdraw

Build a NON-CUSTODIAL any-token LP withdraw plan (approve shares → Permit2 sign → router.withdrawAnyToken) for the caller to sign + broadcast. No broadcast.

Server Agent https://fluxiq.xyz/api/mcp
Category Financial
Risk class Critical
Parameters 65 required

What build_lp_withdraw does on Agent

AI agents use build_lp_withdraw to commit financial operations through Agent — usually the final step of a payment, billing, or trading workflow. A call moves real money.

ParameterTypeRequiredDescription
vault string Yes Known any-token LP vault address.
shares string Yes Vault shares to burn (base-unit integer string).
chainId integer Yes EVM chain id (mainnet = 1 in v1).
recipient string Yes Recipient / payer address (the wallet that signs + receives).
outputToken string Yes Token to receive on withdraw.
slippageBps integer Optional slippage budget in basis points (0–10000).

Parameters from the server's own tool schema.

Why build_lp_withdraw needs a policy

While the tool itself only builds the transaction (no broadcast), it constructs a complete financial operation to withdraw liquidity pool assets. The sequence — approve shares, Permit2 sign, withdrawAnyToken — directly moves financial assets (LP shares → tokens). Building the transaction payload is the critical step enabling the financial transfer; misuse could result in unauthorized withdrawal of liquidity.

From the tool's definition 'LP withdraw plan (approve shares → Permit2 sign → router.withdrawAnyToken)' — builds a transaction that moves liquidity pool shares out, returning tokens to the caller; financial asset movement

Questions about build_lp_withdraw

What does the build_lp_withdraw tool do? +

Build a NON-CUSTODIAL any-token LP withdraw plan (approve shares → Permit2 sign → router.withdrawAnyToken) for the caller to sign + broadcast. No broadcast. It is categorised as a Financial tool in the Agent MCP Server, which means it involves financial transactions. Block by default and require explicit approval.

What parameters does build_lp_withdraw accept? +

build_lp_withdraw accepts 6 parameters: vault, shares, chainId, recipient, outputToken, slippageBps. Required: vault, shares, chainId, recipient, outputToken. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on build_lp_withdraw? +

Register the Agent MCP server in PolicyLayer and add a rule for build_lp_withdraw: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Agent. Nothing to install.

What risk level is build_lp_withdraw? +

build_lp_withdraw is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.

Can I rate-limit build_lp_withdraw? +

Yes. Add a rate_limit block to the build_lp_withdraw rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.

How do I block build_lp_withdraw completely? +

Set action: deny in the PolicyLayer policy for build_lp_withdraw. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.

What MCP server provides build_lp_withdraw? +

build_lp_withdraw is provided by the Agent MCP server (https://fluxiq.xyz/api/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// THE FULL RECORD

build_lp_withdraw is one line of Agent's registry record.

The record carries the whole server: verified identity, auth posture, risk grade, every tool classified, recommended policy — re-checked continuously.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.