Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_cosmos_balance

Retrieve Cosmos blockchain balance for any address across multiple chains like Osmosis, Juno, or Kava. Specify blockchain, address, and optional denomination to query token holdings.

Instructions

Get balance for a Cosmos SDK address on any Cosmos chain

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blockchainYesBlockchain name (e.g., "osmosis", "juno", "kava", "akash")
addressYesCosmos address
denomNoOptional: Specific denomination to query (e.g., "uosmo", "ujuno")
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • The handler case for 'get_cosmos_balance' in handleCosmosTool function. Extracts input parameters, calls cosmosService.getBalance, and formats the response.
    case 'get_cosmos_balance': { const blockchain = args?.blockchain as string; const address = args?.address as string; const denom = args?.denom as string | undefined; const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet'; const result = await cosmosService.getBalance(blockchain, address, denom, network); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], isError: !result.success, }; }
  • Tool registration in registerCosmosHandlers function, including name, description, and input schema definition.
    { name: 'get_cosmos_balance', description: 'Get balance for a Cosmos SDK address on any Cosmos chain', inputSchema: { type: 'object', properties: { blockchain: { type: 'string', description: 'Blockchain name (e.g., "osmosis", "juno", "kava", "akash")', }, address: { type: 'string', description: 'Cosmos address', }, denom: { type: 'string', description: 'Optional: Specific denomination to query (e.g., "uosmo", "ujuno")', }, network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, required: ['blockchain', 'address'], }, },
  • Input schema for the get_cosmos_balance tool, defining parameters like blockchain, address, denom, and network.
    inputSchema: { type: 'object', properties: { blockchain: { type: 'string', description: 'Blockchain name (e.g., "osmosis", "juno", "kava", "akash")', }, address: { type: 'string', description: 'Cosmos address', }, denom: { type: 'string', description: 'Optional: Specific denomination to query (e.g., "uosmo", "ujuno")', }, network: { type: 'string', enum: ['mainnet', 'testnet'], description: 'Network type (defaults to mainnet)', }, }, required: ['blockchain', 'address'], },

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/buildwithgrove/mcp-pocket'

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