Skip to main content
Glama

Submit a withdrawal

submit_withdrawal
Destructive

[DEPRECATED] Submit a withdrawal from MetaLend's rebalancer — moves funds. Requires a jwt from submit_auth_verify for this walletAddress and a signature over prepare_withdrawal's typedData. Always call prepare_withdrawal first — this tool does not look up pool data or validate amounts. The signature's EIP-712 domain is scoped to this one chain — for a smart-contract wallet, it must have (or, if undeployed, would have via ERC-6492 counterfactual deployment) a valid signer on that exact chain (an EOA is chain-agnostic and unaffected). This call can time out on its own if the backend accepted the withdrawal but its response took too long to arrive — the trackingId needed for get_withdrawal_status is still recoverable then: retry with the exact same signature — it cannot double-spend (a real duplicate is rejected with a 409 signature-already-used error, which itself confirms the original withdrawal went through), and that error's message now includes the original trackingId, so read it from there and call get_withdrawal_status directly rather than escalating to support. If that error's message doesn't include a trackingId (it's only included when the conflicting withdrawal belongs to this same wallet), treat the timeout as inconclusive rather than a failure and escalate to support with the wallet address and approximate time instead. Can also fail with a 403 if the jwt wasn't issued for this walletAddress, or a 409 if withdrawing from the Linea Aave USDC pool specifically while a funding-cap refill for that wallet is in progress there (temporary; not visible ahead of time from list_pools or get_balances) — wait and retry. Rate limited to 20 calls/minute per caller, no more than one call every 3s.

Input Schema

NameRequiredDescriptionDefault
jwtYesJWT from submit_auth_verify for this walletAddress.
chainYesFrom prepare_withdrawal's output.
tokenYesToken symbol, e.g. USDC, USDT, MUSD, RLUSD, USDG, USDE, PYUSD.
amountYesFrom prepare_withdrawal's output.
deadlineYesFrom prepare_withdrawal's output.
signatureYesSignature over prepare_withdrawal's typedData.
poolContractYes
walletAddressYesEVM wallet address (0x-prefixed, 40 hex chars). Any casing is accepted — it is normalized to its EIP-55 checksum before being forwarded upstream.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, and the description goes far beyond them: timeout semantics with trackingId recovery, 409 signature-already-used meaning a duplicate went through, 403 for wrong-wallet jwt, a Linea Aave USDC funding-cap 409 that list_pools/get_balances cannot surface, and rate limits of 20/min and one call per 3s. This is exactly the kind of non-obvious failure-mode context an agent cannot get from structured fields.

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?

Despite its length, it is front-loaded with the deprecated flag, the action, and the two preconditions before any edge-case detail, and nearly every sentence carries a distinct operational fact (timeout recovery, each error code, rate limit). There is no restatement of the name or filler.

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

Completeness5/5

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

With no output schema, no annotations covering the failure modes, and eight required parameters, the description carries the full burden and does: it explains prerequisites, on-chain signing scope, timeout/recovery, every documented error, and throttling. An agent can call and recover from this tool without external knowledge.

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?

Schema coverage is 88%, so baseline is 3, and the description genuinely adds value beyond it: the signature's EIP-712 domain is scoped to one chain with an ERC-6492 caveat for smart-contract wallets, and jwt/signature provenance is tied to specific upstream tools. It does not add much for token/amount/deadline beyond what the property descriptions already say.

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?

"Submit a withdrawal from MetaLend's rebalancer — moves funds" gives a specific verb and resource, and the [DEPRECATED] marker plus the prepare_withdrawal prerequisite clearly separate it from prepare_withdrawal and get_withdrawal_status among the siblings.

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?

Strong routing guidance: it names the required upstream calls (submit_auth_verify for jwt, prepare_withdrawal for typedData/chain/amount/deadline) and spells out the retry-vs-escalate decision tree on timeout. The one gap: it is flagged [DEPRECATED] but never names a replacement or a condition for choosing it over a successor, so an agent has no migration path.

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.