search_coins
Find cryptocurrency details by name or symbol to identify coins, their market rank, and current price for accurate data retrieval in crypto analysis.
Instructions
Search for cryptocurrencies by name or symbol. Returns matching coins with their symbol, name, market cap rank, and current price. Use this when you need to find the correct symbol for a coin before calling get_coin_profile.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Search query — coin name or symbol (e.g., 'bitcoin', 'eth', 'solana') |
Implementation Reference
- src/tools/search-coins.ts:15-17 (handler)The handler function that executes the search_coins tool by calling the /api/v1/coins/search endpoint.
export async function handler(args: z.infer<typeof schema>) { return apiGet("/api/v1/coins/search", { q: args.q }); } - src/tools/search-coins.ts:11-13 (schema)Input validation schema for the search_coins tool.
export const schema = z.object({ q: z.string().describe("Search query — coin name or symbol (e.g., 'bitcoin', 'eth', 'solana')"), }); - src/index.ts:42-42 (registration)Registration of the search_coins tool in the main index file.
searchCoins,