Skip to main content
Glama

prepare_kamino_withdraw

DestructiveIdempotent

Withdraw tokens from a previously-supplied Kamino reserve. Refuses if no deposit exists and is health-factor gated to prevent under-collateralization.

Instructions

Build a Kamino withdraw tx — pulls liquidity out of a previously-supplied reserve. Refuses with a clear error if the wallet has no deposit in the named reserve. Health-factor gated on-chain: withdraws that would leave the obligation under-collateralized for outstanding debt revert (caught by the simulation gate). DURABLE NONCE REQUIRED + same blind-sign treatment as prepare_kamino_supply.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesSolana base58 wallet — must already have a Kamino deposit in the named reserve.
mintYesBase58 Solana mainnet address (ed25519 pubkey, 43 or 44 chars).
amountYesHuman-readable amount to withdraw. The reserve must have an active deposit from this wallet — the builder refuses with a clear error otherwise. Health-factor gated on-chain: a withdraw that would leave the obligation under-collateralized for outstanding debt reverts.
Behavior5/5

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

Annotations already indicate destructive and idempotent behavior. The description adds specifics: the error when no deposit exists, health-factor gating on-chain, requirement of a durable nonce, and same blind-sign treatment as prepare_kamino_supply. No contradictions with annotations.

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?

Three sentences, front-loaded with purpose, each sentence adds value (purpose, error condition, health gate and nonce requirement). No superfluous information.

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?

Given the tool's nature (building a transaction with 3 required params), the description covers purpose, error handling, health-factor constraint, nonce requirement, and signing treatment. It references the sibling for consistency. No output schema, but the description adequately sets expectations.

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 100%, so baseline is 3. The description adds the durable nonce requirement, which is not in the schema. While the schema already describes each parameter, the description provides additional behavioral context beyond parameter-specific details.

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 verb 'build a Kamino withdraw tx' and the resource 'Kamino withdraw', explaining it pulls liquidity from a previously-supplied reserve. It distinguishes from siblings by referencing prepare_kamino_supply and noting the error condition if no deposit exists.

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?

The description implies when to use (to withdraw liquidity) and provides context about error conditions and health-factor gating. However, it does not explicitly compare to alternatives like borrowing or repaying, though the tool name and sibling set make this clear.

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/szhygulin/recon-crypto-mcp'

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