// File generated from our OpenAPI spec by Automated MCP Tools Generator import { EasychampWithAIOptimize } from '../../../easychamp-ai-client'; export const metadata = { resource: 'aioptimize.champ_leagues', operation: 'write' as const, tags: ['ChampLeague'], httpMethod: 'delete', httpPath: '/aioptimize/champ-leagues/{name}', operationId: 'DeleteChampLeague', }; export const tool = { name: 'delete_champ_league_aioptimize_champ_leagues', description: 'This operation is used to delete champ league with given name', inputSchema: { type: 'object' as const, properties: { name: { type: 'string' as const, description: 'The identifier of champ league', }, forceDelete: { type: 'boolean' as const, description: 'The flag that indicate necessity of deleting dependencies', }, }, required: ['name'], }, }; export const handler = async (client: EasychampWithAIOptimize, args: Record | undefined) => { const { name, ...query } = args as any; // Use the client's resource method instead of standalone function return client.champLeagues.deleteChampLeague(name, query); }; export default { metadata, tool, handler };