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