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 Q4 operational handoff protocol and adjust team permissions. Today is the first Monday of 2026.
Schedule a recurring 'Quarterly Handoff' meeting on 'Team Coordination' calendar. The meeting should be 90 minutes long and start tomorrow at 1:00 PM (New York time). If the 'Sprint Planning & Architecture Review' event on your 'Project Management' calendar has more than three attendees, schedule the meeting with a weekly recurrence for three occurrences. Otherwise, schedule it with a monthly recurrence for six occurrences.
We must update the existing 'Sprint Planning & Architecture Review' event. If the event's duration is exactly 60 minutes, change the event's color to Mint Green. Otherwise, change the color to Red. 

Find the existing spreadsheet attachment link and replace it with the new finalized specifications document link: 'https://docs.google.com/document/d/Q4-Spec-v2.0'.

Available tools:
patch_event
list_events
create_event
get_colors
get_calendar_list

Verification checks:
[{"verifier_type": "database_state", "name": "Verify Event Color Update (Count 1)", "description": "Verify Event Color Update (Count 1)", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(*)\nFROM events\nWHERE summary = 'Sprint Planning & Architecture Review' AND calendar_id = 'alice-projects' AND color_id = '11';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Total Events Created", "description": "Verify Total Events Created", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(event_id)\nFROM events\nWHERE summary = 'Quarterly Handoff' AND calendar_id = 'alice-team';", "expected_value": 4, "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 Handoff'\n  AND calendar_id = 'alice-team'\n  AND recurrence = 'RRULE:FREQ=WEEKLY;COUNT=3';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify New Attachment Presence", "description": "Verify New Attachment Presence", "gym_name": "gym-calendar", "validation_config": {"query": "SELECT COUNT(file_url)\nFROM attachments\nWHERE event_id IN (SELECT event_id FROM events WHERE summary='Sprint Planning & Architecture Review') AND file_url = 'https://docs.google.com/document/d/Q4-Spec-v2.0';", "expected_value": 1, "comparison_type": "equals"}}]