Skip to main content
Glama

DeFi Trading Agent MCP Server

by edkdev

get_portfolio_tokens

Retrieve token balances, prices, and metadata for multiple wallet addresses across various blockchain networks, enabling detailed portfolio analysis for DeFi trading strategies.

Instructions

Get tokens with balances, prices, and metadata for multiple wallet addresses

Input Schema

NameRequiredDescriptionDefault
addressesYesArray of address and networks pairs (max 3 addresses, max 20 networks each)
includeNativeTokensNoInclude native tokens like ETH (optional, default: false)
withMetadataNoInclude token metadata (optional, default: true)
withPricesNoInclude token prices (optional, default: true)

Input Schema (JSON Schema)

{ "properties": { "addresses": { "description": "Array of address and networks pairs (max 3 addresses, max 20 networks each)", "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" }, "withMetadata": { "description": "Include token metadata (optional, default: true)", "type": "boolean" }, "withPrices": { "description": "Include token prices (optional, default: true)", "type": "boolean" } }, "required": [ "addresses" ], "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