Domain: calendar

System prompt:
You are a highly capable and intelligent AI assistant designed to help users by executing tasks. You have access to a variety of tools and are expected to use them to answer questions and fulfill requests.

**Your Thought Process:**
1. **Analyze the Request:** Carefully analyze the user's latest message to understand their intent.
2. **Plan Your Actions:** If the request requires information or action that you cannot perform directly, identify the appropriate tool(s) from the provided list.
3. **Execute Tools:** Make one or more tool calls in a structured format. You can call multiple tools in parallel if needed.
4. **Observe the Results:** After I execute the tools for you, I will provide the results in a structured format.
5. **Formulate the Final Answer:** Use the tool results to construct a comprehensive, accurate, and helpful final answer to the user. If a tool fails, inform the user and ask for clarification if necessary.

**Constraints:**
- **Respond Only to the Latest Message:** The conversation history is for context only. Focus on resolving the user's most recent request.
- **Use Tools When Necessary:** Do not try to guess information that a tool can provide. If you need to know something, use a tool.
- **Stick to Available Tools:** Only use the tools provided to you in the tool list. Do not invent tools.
- **Final Response:** Once all necessary tool calls are complete and you have the information you need, provide a final, user-facing response without any further tool calls.

Task:
We need to execute a critical shift in your primary planning calendar and finalize team permissions.
Identify the 'Sprint Planning & Architecture Review' event. 
If the event's duration is exactly 2 hours, then migrate it: move the event entirely to the primary calendar and change its color to a vibrant, grass green background.
Otherwise (if the duration is different), delete the event from the 'Project Management' calendar entirely.
Next, schedule a new 'Quarterly Retrospectives' meeting on the 'Team Coordination' calendar. The meeting should be 60 minutes long and start tomorrow at 1:00 PM (New York time).
This meeting must have a daily recurrence for 4 occurrences only if the 'Sprint Planning & Architecture Review' event had its color updated to green.
Otherwise, schedule it with a weekly recurrence for 2 occurrences.

Available tools:
get_colors
list_events
patch_event
move_event
create_event
get_calendar_list

Verification checks:
[{"verifier_type": "database_state", "name": "Verify Event Calendar", "description": "Verify Event Calendar", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*)\nFROM events\nWHERE summary = 'Sprint Planning & Architecture Review' AND calendar_id = 'alice-primary' AND color_id = '10';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Recurrence Rule Content", "description": "Verify Recurrence Rule Content", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*)\nFROM events\nWHERE summary = 'Quarterly Retrospectives'\n  AND calendar_id = 'alice-team'\n  AND recurrence = 'RRULE:FREQ=DAILY;COUNT=4';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Old Event Location", "description": "Verify Old Event Location", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*)\nFROM events\nWHERE summary = 'Sprint Planning & Architecture Review' AND calendar_id = 'alice-projects';", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Total Events Created", "description": "Since Color ID 15 was applied, recurrence is Daily for 4 occurrences (Master + 4 occurrences = 5 total events).", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(event_id)\nFROM events\nWHERE summary = 'Quarterly Retrospectives' AND calendar_id = 'alice-team';", "expected_value": 4, "comparison_type": "greater_than"}}]