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 need to get my email account properly configured. Make sure IMAP is working with automatic cleanup that moves things to archive, and limit how big folders can get to 5000. Turn off POP completely. I want my interface in English US. I need finance.lead@company.com to be able to handle my emails with full access. I want two labels - one red for executive stuff and one purple for product news. Also, I only want my vacation replies to go to people in my company domain.

Available tools:
update_imap_settings
get_vacation_settings
update_pop_settings
update_language_settings
update_vacation_settings
create_label
email_create_delegate

Verification checks:
[{"verifier_type": "database_state", "name": "Verify Language Settings and Delegate Created", "description": "Verifies that language is set to en-US and delegate finance.lead@company.com exists for user_002.", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN language_set >= 1 AND delegate_exists >= 1 \n    THEN 1 \n    ELSE 0 \n  END AS cnt\nFROM (\n  SELECT \n    (SELECT COUNT(*) FROM language_settings \n     WHERE user_id = 'user_002' \n       AND display_language LIKE '%en%US%') AS language_set,\n    (SELECT COUNT(*) FROM delegates \n     WHERE user_id = 'user_002' \n       AND delegate_email = 'finance.lead@company.com') AS delegate_exists\n);", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Executive and Product Labels Created", "description": "Verifies that two labels were created for user_002: Executive Priority with red color and Product Updates with purple color.", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN exec_label >= 1 AND product_label >= 1 \n    THEN 1 \n    ELSE 0 \n  END AS cnt\nFROM (\n  SELECT \n    (SELECT COUNT(*) FROM labels \n     WHERE user_id = 'user_002' \n       AND LOWER(name) LIKE '%executive%'\n       AND color_json IS NOT NULL\n       AND JSON_EXTRACT(color_json, '$.backgroundColor') IN ('#fb4c2f')) AS exec_label,\n    (SELECT COUNT(*) FROM labels \n     WHERE user_id = 'user_002' \n       AND LOWER(name) LIKE '%product%'\n       AND color_json IS NOT NULL\n       AND JSON_EXTRACT(color_json, '$.backgroundColor') IN ('#a479e2')) AS product_label\n);", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Vacation Auto-Reply Updated", "description": "Verifies that vacation auto-reply is updated", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM vacation_settings\nWHERE user_id = 'user_002'\n  AND restrict_to_domain IN (1, true, 'true', 'True');", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify IMAP Enabled and POP Disabled", "description": "Verifies that IMAP is enabled with auto-expunge for user_002 and POP access is disabled.", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN imap_enabled >= 1 AND pop_disabled >= 1 \n    THEN 1 \n    ELSE 0 \n  END AS cnt\nFROM (\n  SELECT \n    (SELECT COUNT(*) FROM imap_settings \n     WHERE user_id = 'user_002' \n       AND enabled IN (1, true, 'true')\n       AND auto_expunge IN (1, true, 'true')) AS imap_enabled,\n    (SELECT COUNT(*) FROM pop_settings \n     WHERE user_id = 'user_002' \n       AND access_window = 'disabled') AS pop_disabled\n);", "expected_value": 1, "comparison_type": "equals"}}]