// File generated from our OpenAPI spec by Automated MCP Tools Generator import { EasychampWithAIOptimize } from '../../../easychamp-ai-client'; export const metadata = { resource: 'aioptimize.player', operation: 'read' as const, tags: ['Player'], httpMethod: 'get', httpPath: '/aioptimize/player/{name}/overallstats', operationId: 'GetOverallPlayerStats', }; export const tool = { name: 'get_overall_player_stats_aioptimize_player', description: 'Retrieves overall statistical information for the player with the specified name.', inputSchema: { type: 'object' as const, properties: { name: { type: 'string' as const, description: 'The name of the player for which overall statistics are requested.', }, }, required: ['name'], }, }; export const handler = async (client: EasychampWithAIOptimize, args: Record | undefined) => { const { name } = args as any; // Use the client's resource method instead of standalone function return client.player.getOverallPlayerStats(name); }; export default { metadata, tool, handler };