Skip to main content
Glama
tdnupe3

Coin Railz MCP Server

by tdnupe3

get_token_metadata

Retrieve ERC-20 token metadata including name, symbol, decimals, and total supply by providing the contract address and blockchain network.

Instructions

Get metadata for any ERC-20 token including name, symbol, decimals, and total supply.

Args: token_address: The token contract address (0x...) chain: Blockchain network. Options: ethereum, base, polygon, bsc, arbitrum, optimism

Returns: Token metadata including name, symbol, decimals, total supply.

Price: $0.10 (FIRST CALL FREE for new users!)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
token_addressYes
chainNoethereum

Implementation Reference

  • The implementation of the 'get_token_metadata' tool handler in the MCP framework.
    @mcp.tool()
    async def get_token_metadata(token_address: str, chain: str = "ethereum") -> str:
        """
        Get metadata for any ERC-20 token including name, symbol, decimals, and total supply.
        
        Args:
            token_address: The token contract address (0x...)
            chain: Blockchain network. Options: ethereum, base, polygon, bsc, arbitrum, optimism
        
        Returns:
            Token metadata including name, symbol, decimals, total supply.
        
        Price: $0.10 (FIRST CALL FREE for new users!)
        """
        payload = {"tokenAddress": token_address, "chain": chain}
        result = await call_coinrailz_service("token-metadata", payload)
        return json.dumps(result, indent=2)

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/tdnupe3/mcp-server-coinrailz'

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