async def create_event(
  summary: str, 
  start_time: str, 
  end_time: str, 
  description: str = None, 
  location: str = None, 
  attendees: list = None, 
  reminders: dict = None
) -> str:
  """Create a calendar event with specified details
  
  Args:
      summary: Event title
      start_time: Start time (ISO format)
      end_time: End time (ISO format)
      description: Event description
      location: Event location
      attendees: List of attendee emails
      reminders: Reminder settings for the event
  
  Returns:
      String with event creation confirmation and link
  """
  logger.debug(f'Creating calendar event with args: {locals()}')
  
  try:
    logger.debug('Creating OAuth2 client')
    # Google OAuth2 
    creds = Credentials(
      None, 
      refresh_token=GOOGLE_REFRESH_TOKEN,
      token_uri="https://oauth2.googleapis.com/token",
      client_id=GOOGLE_CLIENT_ID,
      client_secret=GOOGLE_CLIENT_SECRET
    )
    logger.debug('OAuth2 client created')
    
    logger.debug('Creating calendar service')
    calendar_service = build('calendar', 'v3', credentials=creds)
    logger.debug('Calendar service created')
    
    event = {
      'summary': summary,
      'start': {
        'dateTime': start_time,
        'timeZone': 'Asia/Seoul'
      },
      'end': {
        'dateTime': end_time,
        'timeZone': 'Asia/Seoul'
      }
    }
    
    if description:
      event['description'] = description
    
    if location:
      event['location'] = location
      logger.debug(f'Location added: {location}')
    
    if attendees:
      event['attendees'] = [{'email': email} for email in attendees]
      logger.debug(f'Attendees added: {event["attendees"]}')
    
    if reminders:
      event['reminders'] = reminders
      logger.debug(f'Custom reminders set: {json.dumps(reminders)}')
    else:
      event['reminders'] = {
        'useDefault': False,
        'overrides': [
          {'method': 'popup', 'minutes': 10}
        ]
      }
      logger.debug(f'Default reminders set: {json.dumps(event["reminders"])}')
    
    logger.debug('Attempting to insert event')
    response = calendar_service.events().insert(calendarId='primary', body=event).execute()
    logger.debug(f'Event insert response: {json.dumps(response)}')
    
    return f"Event created: {response.get('htmlLink', 'No link available')}"
    
  except Exception as error:
    logger.debug(f'ERROR OCCURRED:')
    logger.debug(f'Error type: {type(error).__name__}')
    logger.debug(f'Error message: {str(error)}')
    import traceback
    logger.debug(f'Error traceback: {traceback.format_exc()}')
    raise Exception(f"Failed to create event: {str(error)}")
Create a calendar event with specified details
  
  Args:
      summary: Event title
      start_time: Start time (ISO format)
      end_time: End time (ISO format)
      description: Event description
      location: Event location
      attendees: List of attendee emails
      reminders: Reminder settings for the event
  
  Returns:
      String with event creation confirmation and link
  
mcp_ai_agents/ai_travel_planner_mcp_agent_team/calendar_mcp.py