// File generated from our OpenAPI spec by Automated MCP Tools Generator import { EasychampWithAIOptimize } from '../../../easychamp-ai-client'; export const metadata = { resource: 'aioptimize.teams', operation: 'read' as const, tags: ['Team'], httpMethod: 'get', httpPath: '/aioptimize/teams/{name}', operationId: 'GetTeamByName', }; export const tool = { name: 'get_team_by_name_aioptimize_teams', description: 'Retrieves a team by its name.', inputSchema: { type: 'object' as const, properties: { name: { type: 'string' as const, description: 'The name of the team to retrieve.', }, }, 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.teams.getTeamByName(name); }; export default { metadata, tool, handler };