import { z } from "zod";
import { apiGet } from "../client.js";
export const name = "get_coin_profile";
export const description =
"Get a detailed profile for a specific cryptocurrency by symbol (e.g., BTC, ETH, SOL). " +
"Returns current price, market cap, 24h/7d/30d price changes, volume, circulating supply, " +
"ATH/ATL data, category tags, and description. Use search_coins first if you're unsure of " +
"the exact symbol.";
export const schema = z.object({
symbol: z
.string()
.describe("Coin symbol in uppercase (e.g., BTC, ETH, SOL, DOGE)"),
});
export async function handler(args: z.infer<typeof schema>) {
return apiGet(`/api/v1/coins/${args.symbol.toUpperCase()}`);
}