// File generated from our OpenAPI spec by Automated MCP Tools Generator import { EasychampWithAIOptimize } from '../../../easychamp-ai-client'; export const metadata = { resource: 'aioptimize.fixture', operation: 'write' as const, tags: ['Fixtures', 'Lineups'], httpMethod: 'put', httpPath: '/aioptimize/fixture/{id}/homesquad', operationId: 'PutAioptimizeFixtureByIdHomesquad', }; export const tool = { name: 'put_aioptimize_fixture_by_id_homesquad_aioptimize_fixture', description: 'Update home team lineup', inputSchema: { type: 'object' as const, properties: { id: { type: 'string' as const, format: 'uuid', description: 'Fixture ID', }, players: { type: 'array' as const, items: { required: ['champTeamPlayerId', 'playerId'], type: 'object' as const, properties: { playerId: { type: 'string' as const, description: 'The ID of the player. First search for players by name before creating new ones.', format: 'uuid', }, champTeamPlayerId: { type: 'string' as const, description: 'The ID of the player in the competition roster (ChampTeamPlayer).', format: 'uuid', }, position: { type: 'string' as const, description: 'The position of the player in this match. Optional field.', nullable: true, }, squadType: { type: 'integer' as const, description: 'The squad type of the player. 0 = Starting, 1 = Substitute. Default is 0.', format: 'int32', }, }, additionalProperties: false, description: 'Data Transfer Object for a player in a match lineup.', }, description: 'List of players in the lineup.', }, }, required: ['id', 'players'], }, }; export const handler = async (client: EasychampWithAIOptimize, args: Record | undefined) => { const { id, ...body } = args as any; // Use the client's resource method instead of standalone function return client.fixture.putAioptimizeFixtureByIdHomesquad(id, body); }; export default { metadata, tool, handler };