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:
hey can u check my POP email settings… like i wanna know if POP is even on rn and what it does to msgs after i download them. if its off then pls just turn it on for ALL my mails (not just the new ones) and make it so anything i download gets auto archived n doesnt stay in inbox.

also i need to clean up some msgs… find all mails in my inbox that have my “Work” label and just remove them from inbox (archive basically) but dont delete the Work label ok? i just dont wanna see them in inbox anymore since those projects r done.

Available tools:
list_labels
update_pop_settings
get_pop_settings
list_messages
batch_modify_messages

Verification checks:
[{"verifier_type": "database_state", "name": "Confirm POP Settings Updated", "description": "Confirm POP Settings Updated", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM pop_settings ps\nJOIN users u ON u.id = ps.user_id\nWHERE u.primary_email = 'bob@company.com'\n  AND ps.access_window = 'allMail'\n  AND ps.disposition = 'archive';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Confirm Messages Archived (No INBOX, Still Has Work Label)", "description": "Confirm Messages Archived (No INBOX, Still Has Work Label)", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM message_labels ml\nJOIN labels l ON l.id = ml.label_id\nWHERE ml.message_id = 'msg_004'\n  AND l.name = 'Work'\n  AND l.user_id = 'user_002'\n  AND NOT EXISTS (\n    SELECT 1 FROM message_labels ml2\n    JOIN labels l2 ON l2.id = ml2.label_id\n    WHERE ml2.message_id = 'msg_004'\n    AND l2.name = 'INBOX'\n    AND l2.user_id = 'user_002'\n  );", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Confirm POP Settings Updated", "description": "Confirm POP Settings Updated", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM pop_settings ps\nJOIN users u ON u.id = ps.user_id\nWHERE u.primary_email = 'bob@company.com'\n  AND ps.access_window = 'allMail'\n  AND ps.disposition = 'archive';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Confirm Messages Archived (No INBOX, Still Has Work Label)", "description": "Confirm Messages Archived (No INBOX, Still Has Work Label)", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM message_labels ml\nJOIN labels l ON l.id = ml.label_id\nWHERE ml.message_id = 'msg_004'\n  AND l.name = 'Work'\n  AND l.user_id = 'user_002'\n  AND NOT EXISTS (\n    SELECT 1 FROM message_labels ml2\n    JOIN labels l2 ON l2.id = ml2.label_id\n    WHERE ml2.message_id = 'msg_004'\n    AND l2.name = 'INBOX'\n    AND l2.user_id = 'user_002'\n  );", "expected_value": 1, "comparison_type": "equals"}}]