// 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}', operationId: 'GetPlayerByName', }; export const tool = { name: 'get_player_by_name_aioptimize_player', description: 'Retrieves details for 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 retrieved.', }, }, 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.getPlayerByName(name); }; export default { metadata, tool, handler };