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 set up my email backup and security system for semester end. Review my mailbox history to see recent activity. Check my encryption key pairs. Disable the old secure key pair kp_carol_secure_24680_2024 since I'm retiring it. Keep kp_carol_ghi13579_2024 active. Create two backup labels: navy "Research Backup 2024" and dark green "Archive Verified". Check my send-as addresses and verify carol@university.edu is properly configured. Pull my profile for documentation.

Available tools:
email_get_cse_keypair
create_label
list_send_as_aliases
email_list_cse_keypairs
email_disable_cse_keypair
list_history
get_user_profile
verify_send_as_alias

Verification checks:
[{"verifier_type": "database_state", "name": "Verify Old CSE Key Pair Disabled", "description": "Verifies that kp_carol_secure_24680_2024 was disabled for user_003 (changed from enabled to disabled state).", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM cse_key_pairs\nWHERE user_id = 'user_003'\n  AND key_pair_id = 'kp_carol_secure_24680_2024'\n  AND enablement_state = 'disabled';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Backup Labels Created", "description": "Verifies that two new backup labels were created for user_003 (seed has 3 user labels).", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM labels\nWHERE user_id = 'user_003'\n  AND type = 'user';", "expected_value": 4, "comparison_type": "greater_than"}}, {"verifier_type": "database_state", "name": "Verify Backup System Components Created", "description": "Verifies that both Research Backup 2024 and Archive Verified labels were created for user_003 by checking if specific backup-related labels exist.", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN backup_label >= 1 AND archive_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_003' \n       AND LOWER(name) LIKE '%backup%2024%') AS backup_label,\n    (SELECT COUNT(*) FROM labels \n     WHERE user_id = 'user_003' \n       AND LOWER(name) LIKE '%archive%verified%') AS archive_label\n);", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Secure Key Pair Disabled", "description": "Verifies that kp_carol_secure_24680_2024 was successfully disabled for user_003, confirming the old key retirement.", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM cse_key_pairs\nWHERE user_id = 'user_003'\n  AND key_pair_id = 'kp_carol_secure_24680_2024'\n  AND enablement_state = 'disabled';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Old CSE Key Pair Disabled", "description": "Verifies that kp_carol_secure_24680_2024 was disabled for user_003 (changed from enabled to disabled state).", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM cse_key_pairs\nWHERE user_id = 'user_003'\n  AND key_pair_id = 'kp_carol_secure_24680_2024'\n  AND enablement_state = 'disabled';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Backup Labels Created", "description": "Verifies that two new backup labels were created for user_003 (seed has 3 user labels).", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM labels\nWHERE user_id = 'user_003'\n  AND type = 'user';", "expected_value": 4, "comparison_type": "greater_than"}}, {"verifier_type": "database_state", "name": "Verify Backup System Components Created", "description": "Verifies that both Research Backup 2024 and Archive Verified labels were created for user_003 by checking if specific backup-related labels exist.", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN backup_label >= 1 AND archive_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_003' \n       AND LOWER(name) LIKE '%backup%2024%') AS backup_label,\n    (SELECT COUNT(*) FROM labels \n     WHERE user_id = 'user_003' \n       AND LOWER(name) LIKE '%archive%verified%') AS archive_label\n);", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Secure Key Pair Disabled", "description": "Verifies that kp_carol_secure_24680_2024 was successfully disabled for user_003, confirming the old key retirement.", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM cse_key_pairs\nWHERE user_id = 'user_003'\n  AND key_pair_id = 'kp_carol_secure_24680_2024'\n  AND enablement_state = 'disabled';", "expected_value": 1, "comparison_type": "equals"}}]