// File generated from our OpenAPI spec by Automated MCP Tools Generator import { EasychampWithAIOptimize } from '../../../easychamp-ai-client'; export const metadata = { resource: 'aioptimize.teams', operation: 'write' as const, tags: ['Team'], httpMethod: 'put', httpPath: '/aioptimize/teams/{name}', operationId: 'UpdateTeam', }; export const tool = { name: 'update_team_aioptimize_teams', description: 'Updates the information for an existing team with the specified name.', inputSchema: { type: 'object' as const, properties: { name: { type: 'string' as const, nullable: true, }, id: { type: 'string' as const, format: 'uuid', }, updatedBy: { type: 'string' as const, nullable: true, }, staffMembers: { type: 'array' as const, items: { type: 'object' as const, properties: { id: { type: 'string' as const, format: 'uuid', nullable: true, }, firstName: { type: 'string' as const, nullable: true, }, middleName: { type: 'string' as const, nullable: true, }, lastName: { type: 'string' as const, nullable: true, }, position: { enum: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'], type: 'string' as const, description: 'TeamStaffMemberPosition object (schema omitted for brevity) (originally integer enum values)', format: 'int32', }, dateOfBirth: { type: 'string' as const, format: 'date-time', nullable: true, }, nationality: { type: 'string' as const, nullable: true, }, gender: { enum: ['0', '1', '2'], type: 'string' as const, description: 'Gender object (schema omitted for brevity) (originally integer enum values)', format: 'int32', }, imageUrl: { type: 'string' as const, nullable: true, }, }, additionalProperties: false, }, nullable: true, }, isVirtual: { type: 'boolean' as const, nullable: true, }, isImportCompleted: { type: 'boolean' as const, nullable: true, }, gender: { enum: ['0', '1', '2'], type: 'string' as const, description: 'Gender object (schema omitted for brevity) (originally integer enum values)', format: 'int32', }, shortName: { type: 'string' as const, nullable: true, }, teamLeague: { type: 'string' as const, nullable: true, }, country: { type: 'string' as const, nullable: true, }, leagueImageUrl: { type: 'string' as const, nullable: true, }, sportKind: { type: 'string' as const, format: 'uuid', }, imageUrl: { type: 'string' as const, nullable: true, }, isInternational: { type: 'boolean' as const, nullable: true, }, externalId: { type: 'string' as const, nullable: true, }, parentId: { type: 'string' as const, format: 'uuid', nullable: true, }, }, required: ['name'], }, }; export const handler = async (client: EasychampWithAIOptimize, args: Record | undefined) => { const { name, ...body } = args as any; // Use the client's resource method instead of standalone function return client.teams.updateTeam(name, body); }; export default { metadata, tool, handler };