Domain: email

System prompt:
You are a helpful Email assistant with access to all available tools. 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’m cleaning up my mailbox so things don’t pile up. Can you first check my existing forwarding settings and turn on auto-forwarding to my.manager@example.com if it’s currently disabled? After that, look for any message that contains the line “I will attend the meeting” and delete every message in that thread along with the thread itself. Once that’s done, patch the label “Important” so its background color is updated to #cc3a21. And to finish things up, update my IMAP settings so that message auto-expunge is disabled if not turned off already.

Available tools:
get_auto_forwarding
update_imap_settings
get_imap_settings
list_messages
update_auto_forwarding
patch_label
list_labels
delete_thread

Verification checks:
[{"verifier_type": "database_state", "name": "verify auto_explunge disabled", "description": "verify auto_explunge disabled", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT imap_settings.auto_expunge\nFROM imap_settings\nWHERE user_id = \"user_001\";", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "verify label color update", "description": "verify label color update", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS label_color_updated\nFROM labels\nWHERE name = 'Important'\n  AND json_extract(color_json, '$.backgroundColor') = '#cc3a21';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Auto forwarding check", "description": "Auto forwarding check", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS forwarding_enabled\nFROM auto_forwarding\nWHERE enabled = 1\n  AND user_id = \"user_001\"\n  AND email_address = 'my.manager@example.com';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "check thread deleted", "description": "check thread deleted", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS thread_trashed\nFROM threads\nWHERE id = \"thread_001\";", "expected_value": 0, "comparison_type": "equals"}}]