Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

executeLPRedeem

Execute LP redemption to withdraw liquidity from a pool position, returning an order number for tracking status. Requires prior position details and user confirmation.

Instructions

Execute LP redemption to withdraw liquidity from a pool position. Returns an order number that can be used to track redemption status.

Prerequisites (mandatory):

  1. Call getLPPositionList to get position details and positionId

  2. Display redemption details (amount, expected tokens, fees) to user

  3. Obtain explicit user confirmation

AI agent must obtain explicit user confirmation before calling this endpoint.

Response is an acknowledgment only — use getLPOrderList to confirm actual redemption. On-chain confirmation and token transfer typically takes 10-60 seconds.

Do NOT call this endpoint directly without user approval.

Agent hint: Use this endpoint to execute LP redemption after getting user confirmation. Never call without user approval. Always call getLPPositionList first. dercRatio is the reduction ratio: "0.5" = 50% withdrawal, "1" = full withdrawal.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
positionIdYes
poolAddressYes
dercRatioYes
receiveTokenCodeNo
Behavior4/5

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

Despite no annotations, the description discloses key behaviors: returns an acknowledgment only, on-chain confirmation takes 10-60 seconds, and dercRatio meaning. It does not detail error handling or idempotency, but the warning about user approval and tracking via getLPOrderList adds sufficient transparency.

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?

The description is well-structured: first sentence defines purpose, then prerequisites, warnings, and agent hints. Every sentence adds value, with no redundancy. Front-loaded with crucial info, and uses bold for emphasis. Ideal conciseness for the complexity.

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?

Given no output schema, minimal schema coverage, and no annotations, the description effectively covers context: prerequisites, post-call tracking, timing, and usage warnings. It lacks explanation of receiveTokenCode and potential errors, but the agent hints and prerequisites fill many gaps. Slightly incomplete but very strong.

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 0%, so description must explain parameters. It explains dercRatio with examples ('0.5' = 50%, '1' = full) but does not describe positionId, poolAddress, or receiveTokenCode. While prerequisites imply positionId/poolAddress come from getLPPositionList, missing explicit definitions reduce clarity.

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?

The description clearly states the tool's purpose: 'Execute LP redemption to withdraw liquidity from a pool position.' It specifies the action (execute LP redemption), the resource (pool position), and distinguishes it from siblings like 'executeLPStake' and 'getLPPositionList'. The return of an order number for tracking further clarifies functionality.

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

Usage Guidelines5/5

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

The description provides explicit prerequisites: call getLPPositionList first, display redemption details to user, and obtain explicit confirmation. It warns against direct calls without approval and directs to use getLPOrderList for tracking. This clearly differentiates when to use vs alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bybit-exchange/trading-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server