import { z } from "zod";
import { fetchSportsMetadata } from "../services/gamma.js";
const schema = z.object({});
export const getSportsMetadataTool = {
name: "get_sports_metadata",
description: "Get sports metadata (leagues, seasons, etc.). Use with list_teams or sports market filters. Example: no params.",
parameters: schema,
execute: async () => {
try {
const data = await fetchSportsMetadata();
return JSON.stringify(data, null, 2);
} catch (error) {
return JSON.stringify({ error: error instanceof Error ? error.message : String(error) });
}
},
};