Skip to main content
Glama

prepare_kamino_supply

DestructiveIdempotent

Prepares a Kamino deposit transaction to supply tokens. Requires wallet, mint address, and human-readable amount. Validates mint listing and resolves decimals. Must initialize user first.

Instructions

Build a Kamino deposit (supply) tx. Refuses if the wallet doesn't have Kamino userMetadata + obligation already initialized — run prepare_kamino_init_user first. Validates that the mint is listed on Kamino's main market; resolves decimals from the reserve's mint metadata so callers pass human amounts ("100" = 100 USDC, "0.5" = 0.5 SOL). DURABLE NONCE REQUIRED + same Ledger blind-sign treatment as prepare_kamino_init_user. The returned tx packs [computeBudget, ATA setup if needed, reserve refresh, obligation refresh, deposit, cleanup] under v0 + Kamino's market ALTs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesSolana base58 wallet — funds the deposit + tx fee. Must have already run prepare_kamino_init_user.
mintYesBase58 SPL mint address of the asset to supply. Must be listed on Kamino's main market — refuses otherwise. Common Kamino reserves: USDC, USDT, SOL, JitoSOL, mSOL, JLP, JUP, BONK.
amountYesHuman-readable amount to supply (e.g. "100" for 100 USDC, "0.5" for 0.5 SOL). Decimals are resolved from the reserve's mint metadata; pass the human value, not raw base units.
Behavior5/5

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

Describes the internal transaction composition (computeBudget, ATA setup, reserve refresh, etc.), decimal resolution, and validation against Kamino's main market. Adds significant detail beyond annotations (destructive, idempotent) without contradiction.

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 concise (3 sentences) but packs essential information: purpose, prerequisites, human amounts, nonce requirement, and tx composition. Front-loaded with the core action, no wasted words.

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 complexity of a Kamino supply transaction and no output schema, the description is complete: it explains the prerequisite, input validation, parameter interpretation, and what the returned transaction contains, enabling correct use.

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?

The schema already provides descriptions for all three parameters, including human amount semantics. The description adds context about market validation and prerequisite (wallet initialization) for the wallet param, complementing the schema effectively.

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 'Build a Kamino deposit (supply) tx' with specific verb and resource. It distinguishes from siblings like prepare_kamino_init_user and prepare_kamino_borrow by mentioning prerequisites and the deposit-specific flow.

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?

Explicitly tells when to use (after prepare_kamino_init_user) and what not to use (if not initialized). Also mentions required nonce and Ledger blind-sign treatment, guiding the agent on prerequisites and signing context.

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