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
| Name | Required | Description | Default |
|---|---|---|---|
| coin_id | Yes |
Implementation Reference
- src/apis/crypto/coingecko.ts:60-64 (handler)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); },
- src/apis/crypto/coingecko.ts:40-48 (schema)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"], }, },
- src/apis/crypto/coingecko.ts:17-19 (helper)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}`); }
- src/tools/register.ts:22-33 (registration)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(), ];