import { z } from "zod";
import { apiGet } from "../client.js";
export const name = "get_market_health";
export const description =
"Get the market health summary — a dual-score system (0-100) measuring long-term trend strength " +
"and short-term momentum. Returns total_score, long_term_score, short_term_score, sentiment " +
"(bullish/bearish/neutral), and market state (bear_market, early_recovery, early_bull, " +
"confirmed_bull, topping_out). Use this to quickly assess the overall market regime before " +
"making trading decisions.";
export const schema = z.object({});
export async function handler(_args: z.infer<typeof schema>) {
return apiGet("/api/v1/market-health/summary");
}