Skip to main content
Glama

Prepare withdrawal

lp_withdraw_prepare

Prepare a fully simulated position withdrawal with a sign link. Default receive USDC; original keeps position tokens. Supply percent (1–100) OR targetUSDC. Impact above 5% requires confirmHighImpact. For two transactions, finalize the first then call again with stage=swap, tx1Signature and previous (the complete first result).

Input Schema

NameRequiredDescriptionDefault
stageNo
walletYes
percentNo
receiveNo
previousNo
outputMintNo
targetUSDCNo
positionMintYes
tx1SignatureNo
confirmHighImpactNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond annotations, it discloses that the operation is fully simulated, defaults to USDC, preserves position tokens for 'original,' and requires confirmHighImpact above 5%. It also explains the two-stage call sequence. It does not mention auth or return format.

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?

The description is dense and front-loaded, covering the core flow in a few sentences. Some clauses are long but each carries necessary constraint or routing information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex 10-parameter, multi-stage tool with no output schema, the description covers the main usage path but omits return-value expectations and some parameter meanings. It is adequate for invocation but not fully complete.

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?

With 0% schema coverage, the description explains several key parameters: percent/targetUSDC choice, receive default, stage=swap, tx1Signature, previous, and confirmHighImpact. It leaves wallet, positionMint, and outputMint unexplained, so gaps remain.

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 description states a specific action—prepare a fully simulated position withdrawal—and its output artifact, a sign link. It implicitly distinguishes preparation from execution through 'Prepare' and 'sign link,' though it does not name lp_withdraw_submit as the follow-up.

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

Usage Guidelines4/5

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

It specifies the required choice between percent and targetUSDC, the high-impact confirmation threshold, and the two-transaction continuation path. It does not explicitly name when to use this versus lp_withdraw_submit or when not to prepare.

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.

Resources