Docs/MCP Tools/get_wallet_balance
MCP Toolget_wallet_balanceScope: account:read

Get Wallet Balance

Retrieve the current available balance, currency preference, and ledger status in the user's Krafto Wallet.

Description

Get Wallet Balance queries the user's preloaded digital funds in the Krafto internal payment ledger. Krafto Wallet enables seamless micro-purchases and autonomous agent procurement without requiring interactive credit card entries or OTP steps during automated coding runs. This tool returns the user's available balance in Indian Rupees (INR) and US Dollars (USD), their preferred billing currency, and whether their wallet is enabled for autonomous transactions.

AI Agent Guidance & Best Practices

Always verify get_wallet_balance before attempting a purchase via purchase_asset_with_wallet to verify sufficient credits exist.

Input Arguments

0 parameters
No parameters required for this operation.

Request Example

{
  "jsonrpc": "2.0",
  "id": "call_11",
  "method": "tools/call",
  "params": {
    "name": "get_wallet_balance",
    "arguments": {}
  }
}

Response Schema Example

application/json
{
  "balanceINR": 2450,
  "balanceUSD": 29.5,
  "currencyPreference": "INR",
  "walletActive": true
}