// 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/search', operationId: 'SearchPlayers', }; export const tool = { name: 'search_players_aioptimize_player', description: 'Searches for players based on the specified criteria.', inputSchema: { type: 'object' as const, properties: { NameOrTeam: { type: 'string' as const, description: undefined, }, Ids: { type: 'array' as const, items: { type: 'string' as const, format: 'uuid', }, description: undefined, }, OwnerIds: { type: 'array' as const, items: { type: 'string' as const, format: 'uuid', }, description: undefined, }, ParentIds: { type: 'array' as const, items: { type: 'string' as const, format: 'uuid', }, description: undefined, }, Name: { type: 'string' as const, description: undefined, }, Nationality: { type: 'string' as const, description: undefined, }, SportKindId: { type: 'string' as const, format: 'uuid', description: undefined, }, SportKindName: { type: 'string' as const, description: undefined, }, ChampLeagueId: { type: 'string' as const, format: 'uuid', description: undefined, }, ChampId: { type: 'string' as const, format: 'uuid', description: undefined, }, FullName: { type: 'string' as const, description: undefined, }, FirstName: { type: 'string' as const, description: undefined, }, LastName: { type: 'string' as const, description: undefined, }, ExternalId: { type: 'string' as const, description: undefined, }, ExternalIds: { type: 'array' as const, items: { type: 'string' as const, }, description: undefined, }, FullNames: { type: 'array' as const, items: { type: 'string' as const, }, description: undefined, }, pageSize: { type: 'integer' as const, format: 'int32', default: 10, description: 'Number of items per page (default is 10).', }, pageIndex: { type: 'integer' as const, format: 'int32', default: 0, description: 'Page index (default is 0).', }, }, }, }; export const handler = async (client: EasychampWithAIOptimize, args: Record | undefined) => { const body = args as any; // Use the client's resource method instead of standalone function return client.player.searchPlayers(body); }; export default { metadata, tool, handler };