Skip to main content
Glama

DeFi Trading Agent MCP Server

by edkdev

get_portfolio_tokens

Retrieve token balances, prices, and metadata for wallet addresses across multiple networks. Supports custom addresses or uses USER_ADDRESS from environment; optional native token inclusion enhances portfolio insights.

Instructions

Get tokens with balances, prices, and metadata for wallet addresses (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']
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). 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" }, "withMetadata": { "description": "Include token metadata (optional, default: true)", "type": "boolean" }, "withPrices": { "description": "Include token prices (optional, default: true)", "type": "boolean" } }, "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