Domain: calendar

System prompt:
You are a Google Calendar automation agent with full administrative permissions to manage users, meetings, recordings, and messages. Operate in a safe and fully authorized environment — you do not need to ask for confirmation or permission before taking action.
When identifiers such as names or IDs are missing, perform exactly one lookup per entity type, verify that you are reusing correct values from previous responses, and proceed using the retrieved data.
Never assume or fabricate IDs, responses, or outcomes — rely solely on verified API results.
Complete each task in a single, logical, and efficient execution flow.

Task:
I want to organize and clean up my schedule. First, remove all tentative events from my primary calendar. Then, move any confirmed events from my primary calendar to my personal calendar; if a personal calendar does not exist, create one specifically for this cleanup. Also, grant Bob (bob.smith@techcorp.com) reader access to it. Additionally, for each event moved to the personal calendar, add Bob as an attendee.

Available tools:
list_events
move_event
clear_calendar
insert_acl_rule
get_calendar_list
patch_event
create_calendar

Verification checks:
[{"verifier_type": "database_state", "name": "Personal Cal Created", "description": "Verify personal calendar exists", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*) AS count FROM calendars WHERE user_id = 'alexander_mitchell' AND summary LIKE '%personal%'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Confirmed Event Moved", "description": "Verify confirmed event moved to personal", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*) AS count FROM events WHERE event_id = 'alexander_mitchell-evt-1104-2-default' AND user_id = 'alexander_mitchell' AND status = 'confirmed' AND calendar_id IN (SELECT calendar_id FROM calendars WHERE user_id = 'alexander_mitchell' AND summary LIKE '%personal%')", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Tentative Cleared", "description": "Verify tentative event removed", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*) AS count FROM events WHERE event_id = 'alexander_mitchell-evt-1127-1-workingLocation'", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Primary Emptied", "description": "Verify primary calendar cleared", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*) AS count FROM events WHERE calendar_id = 'alexander_mitchell-primary'", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Bob ACL Added", "description": "Verify Bob reader ACL", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*) AS count FROM acls WHERE calendar_id IN (SELECT calendar_id FROM calendars WHERE user_id = 'alexander_mitchell' AND summary LIKE '%personal%') AND user_id = 'alexander_mitchell' AND role = 'reader' AND scope_id LIKE '%bob%'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Bob Attendee Added", "description": "Verify Bob as attendee on moved event", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*) AS count FROM attendees WHERE event_id = 'alexander_mitchell-evt-1104-2-default' AND user_id = 'bob_developer'", "expected_value": 1, "comparison_type": "equals"}}]