Skip to main content
Glama

DeFi Trading Agent MCP Server

by edkdev

get_portfolio_balances

Retrieve token balances for specified wallet addresses or default env address across multiple blockchain networks. Supports native token inclusion for comprehensive portfolio tracking in DeFi Trading Agent MCP Server.

Instructions

Get token balances for wallet addresses (faster, no prices/metadata, uses USER_ADDRESS from env if addresses not provided)

Input Schema

NameRequiredDescriptionDefault
addressesNoArray of address and networks pairs (max 3 addresses, max 20 networks each). Optional - uses USER_ADDRESS from env if not provided
includeNativeTokensNoInclude native tokens like ETH (optional, default: false)
networksNoNetwork identifiers to use with USER_ADDRESS (e.g., 'eth-mainnet', 'base-mainnet'). Only used when addresses not provided. Defaults to ['eth-mainnet', 'base-mainnet']

Input Schema (JSON Schema)

{ "properties": { "addresses": { "description": "Array of address and networks pairs (max 3 addresses, max 20 networks each). Optional - uses USER_ADDRESS from env if not provided", "items": { "properties": { "address": { "description": "Wallet address", "type": "string" }, "networks": { "description": "Network identifiers (e.g., 'eth-mainnet', 'base-mainnet')", "items": { "type": "string" }, "type": "array" } }, "required": [ "address", "networks" ], "type": "object" }, "type": "array" }, "includeNativeTokens": { "description": "Include native tokens like ETH (optional, default: false)", "type": "boolean" }, "networks": { "description": "Network identifiers to use with USER_ADDRESS (e.g., 'eth-mainnet', 'base-mainnet'). Only used when addresses not provided. Defaults to ['eth-mainnet', 'base-mainnet']", "items": { "type": "string" }, "type": "array" } }, "required": [], "type": "object" }

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/edkdev/defi-trading-mcp'

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