Skip to main content
Glama

prepare_kamino_init_user

DestructiveIdempotent

Initialize a user on Kamino's main market by creating the user lookup table, userMetadata PDA, and obligation PDA in one transaction. Required once before supplying, borrowing, or withdrawing.

Instructions

First-time Kamino setup. Creates the user lookup table + userMetadata PDA + obligation PDA (VanillaObligation, tag 0) on Kamino's main market in a single tx. ONE-TIME — required prerequisite before prepare_kamino_supply / borrow / withdraw / repay. Refuses if userMetadata already exists (use the supply tool directly). Costs ~0.028 SOL total in rent for the three accounts (recoverable via Kamino's account-close flow when fully exiting). DURABLE NONCE REQUIRED. BLIND-SIGN on Ledger — Kamino's program isn't in the Solana app's clear-sign allowlist; match the Message Hash on-device after preview_solana_send.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
walletYesSolana base58 wallet — funds the LUT (~0.014 SOL rent) + obligation PDA (~0.012 SOL rent) + userMetadata PDA (~0.002 SOL rent). Must have an initialized durable-nonce account (prepare_solana_nonce_init).
Behavior1/5

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

The description discloses many behavioral details (cost, durable nonce, blind-sign, refusal on repeat), but it contradicts the annotation idempotentHint=true. The description states it refuses if userMetadata already exists, which means repeating the call with the same wallet will fail, thus it is not idempotent. This contradiction forces a score of 1 per rubric.

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?

Description is four sentences, dense with information but not verbose. Key points are front-loaded (first-time setup, creates accounts, one-time). A minor improvement could be splitting the cost details to improve readability, but overall effective.

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?

For a single-parameter tool with no output schema, the description covers prerequisites, costs, refusal condition, and security warnings (durable nonce, blind-sign). It does not explicitly state that the tool returns a transaction, but this is implied by the 'prepare' pattern and sibling tools. Minor gap but acceptable.

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%, but the description adds valuable context beyond the schema: it explains that the wallet funds specific accounts with rent estimates (~0.014 SOL, ~0.012 SOL, ~0.002 SOL) and requires an initialized durable-nonce account. This helps the agent understand the parameter's implications.

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?

Description clearly states it is for first-time Kamino setup, creates specific accounts (user lookup table, userMetadata PDA, obligation PDA), and is a one-time prerequisite. It distinguishes itself from sibling tools like prepare_kamino_supply by explicitly calling itself a prerequisite.

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?

Description explicitly says 'ONE-TIME — required prerequisite before prepare_kamino_supply / borrow / withdraw / repay' and 'Refuses if userMetadata already exists (use the supply tool directly).' It also warns about durable nonce requirement and blind-signing, providing clear when-to-use and when-to-avoid guidance.

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