// File generated from our OpenAPI spec by Automated MCP Tools Generator import { EasychampWithAIOptimize } from '../../../easychamp-ai-client'; export const metadata = { resource: 'aioptimize.champs', operation: 'write' as const, tags: ['Champ'], httpMethod: 'delete', httpPath: '/aioptimize/champs/{name}', operationId: 'DeleteChamp', }; export const tool = { name: 'delete_champ_aioptimize_champs', description: 'This operation is used to delete the competition/champ for the given name', inputSchema: { type: 'object' as const, properties: { name: { type: 'string' as const, description: 'The name of the competition/champ', }, forceDelete: { type: 'boolean' as const, default: false, 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.champs.deleteChamp(name, query); }; export default { metadata, tool, handler };