// 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: 'post', httpPath: '/aioptimize/teams', operationId: 'CreateTeam', }; export const tool = { name: 'create_team_aioptimize_teams', description: 'Creates a new team with the provided details.', inputSchema: { type: 'object' as const, properties: { name: { minLength: 1, type: 'string' as const, description: 'The name of the team. This is a required field.', }, sportKind: { minLength: 1, type: 'string' as const, description: 'The sport kind (e.g., "Football", "Basketball", "Tennis"). This is a required field.', }, country: { type: 'string' as const, description: 'The country or region the team is from. Optional field.', nullable: true, }, imageUrl: { type: 'string' as const, description: 'URL to the team\'s logo or image. Optional field.', nullable: true, }, isInternational: { type: 'boolean' as const, description: 'Indicates if this is an international team. Default is false.', }, }, required: ['name', 'sportKind'], }, }; 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.teams.createTeam(body); }; export default { metadata, tool, handler };