// File generated from our OpenAPI spec by Automated MCP Tools Generator import { EasychampWithAIOptimize } from '../../../easychamp-ai-client'; export const metadata = { resource: 'aioptimize.teams', operation: 'write' as const, tags: ['Team'], httpMethod: 'delete', httpPath: '/aioptimize/teams/{name}', operationId: 'DeleteTeam', }; export const tool = { name: 'delete_team_aioptimize_teams', description: 'Deletes a team with the specified name.', inputSchema: { type: 'object' as const, properties: { name: { type: 'string' as const, description: 'The name of the team to be deleted.', }, forceDelete: { type: 'boolean' as const, default: false, description: 'A flag indicating whether to force delete the team, including associated players and data (default is false).', }, }, 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.teams.deleteTeam(name, query); }; export default { metadata, tool, handler };