Skip to main content
Glama

get_token_metadata

Retrieve token contract metadata including name, symbol, and decimals using the contract address to identify and interact with blockchain tokens.

Instructions

Get metadata for a token contract

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contractAddressYesThe contract address of the token

Implementation Reference

  • index.ts:723-736 (registration)
    Registration of the 'get_token_metadata' tool in the ListTools response, defining its name, description, and input schema.
    { name: "get_token_metadata", description: "Get metadata for a token contract", inputSchema: { type: "object", properties: { contractAddress: { type: "string", description: "The contract address of the token", }, }, required: ["contractAddress"], }, },
  • TypeScript type definition for the input parameters of the get_token_metadata tool.
    type GetTokenMetadataParams = { contractAddress: string };
  • Validation function to check if arguments match GetTokenMetadataParams type, used in handler.
    const isValidGetTokenMetadataParams = ( args: any ): args is GetTokenMetadataParams => { return ( typeof args === "object" && args !== null && typeof args.contractAddress === "string" ); };

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/itsanishjain/alchemy-sdk-mcp'

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