Skip to main content
Glama

list_supported_chains

Retrieve all supported blockchain networks and their configurations for cross-chain trading operations on Paloma DEX.

Instructions

List all supported chains with their configurations.

Returns: JSON string with all supported chain information.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'list_supported_chains' tool. It iterates over CHAIN_CONFIGS to build and return a JSON dictionary of supported chain configurations including RPC URLs, explorers, and contract availability flags.
    @mcp.tool() async def list_supported_chains(ctx: Context) -> str: """List all supported chains with their configurations. Returns: JSON string with all supported chain information. """ try: chains_info = {} for chain_id, config in CHAIN_CONFIGS.items(): chains_info[chain_id] = { "chain_id": config.chain_id, "name": config.name, "rpc_url": config.rpc_url, "explorer_url": config.explorer_url, "has_pusd_token": bool(config.pusd_token), "has_pusd_connector": bool(config.pusd_connector), "has_etf_connector": bool(config.etf_connector) } return json.dumps(chains_info, indent=2) except Exception as e: logger.error(f"Error listing chains: {e}") return f"Error listing chains: {str(e)}"

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/VolumeFi/mcpPADEX'

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