Skip to main content
Glama

get_market_data

Retrieve market data for a specific cryptocurrency coin using the Multi-MCPs server, which integrates multiple third-party APIs for streamlined data access.

Instructions

Get market data for a coin

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coin_idYes

Implementation Reference

  • The async handler function for the 'get_market_data' tool. It validates the coin_id argument and delegates to the CoinGeckoClient's getMarketData method.
    async get_market_data(args: Record<string, unknown>) { const coinId = String(args.coin_id || ""); if (!coinId) throw new Error("coin_id is required"); return client.getMarketData(coinId); },
  • The schema definition for the 'get_market_data' tool, including name, description, and input schema requiring 'coin_id' string.
    { name: "get_market_data", description: "Get market data for a coin", inputSchema: { type: "object", properties: { coin_id: { type: "string" } }, required: ["coin_id"], }, },
  • The helper method in CoinGeckoClient class that performs the actual API request for market data of a specific coin.
    getMarketData(coinId: string) { return this.request(`/coins/${coinId}`); }
  • The registrations array in registerAllTools includes registerCoinGecko(), thereby registering the get_market_data tool along with others.
    const registrations: ToolRegistration[] = [ registerOpenWeather(), registerGoogleMaps(), registerNewsApi(), registerGitHub(), registerNotion(), registerTrello(), registerSpotify(), registerTwilio(), registerUnsplash(), registerCoinGecko(), ];

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/TaylorChen/muti-mcps'

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