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:
Okay, I need you to do this exactly as I say because I'm freaking out. Start a new draft to 'all-staff@company.com' with the subject 'Salaries' and the body 'See attached list.'

...Wait, NO. STOP. That is a terrible idea. Delete that draft immediately! I cannot risk sending that.

Instead, we need to lock this down. Create a label called 'Confidential'. Then, set up a filter so that if I get any email with 'Payroll' in the subject line, it automatically gets that 'Confidential' label.

I need a second pair of eyes on this. Add 'bob@company.com' as a delegate to my account. Make sure he's set to 'accepted' status.

Available tools:
create_draft
create_filter
email_create_delegate
create_label
delete_draft

Verification checks:
[{"verifier_type": "database_state", "name": "Verify Confidential Setup", "description": "Verify Confidential Label Created Successfully", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(F.id)\nFROM filters AS F\nJOIN labels AS L ON F.user_id = L.user_id\nWHERE F.user_id = 'user_001'\n  AND L.name = 'Confidential'\n  AND json_extract(F.criteria_json, '$.subject') LIKE '%Payroll%'\n  AND json_extract(F.action_json, '$.addLabelIds') LIKE '%' || L.id || '%';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Delegate Deleted", "description": "Verify Delegate Deleted Successfully", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(id) FROM delegates \n    WHERE user_id = 'user_001' AND delegate_email = 'bob@company.com' AND verification_status = 'accepted';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Draft Deleted", "description": "Verify Risky Draft Deleted Successfully", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(D.id)\nFROM drafts AS D\nJOIN messages AS M ON D.message_id = M.id\nJOIN message_parts AS MP ON M.id = MP.message_id\nJOIN message_headers AS MH ON MP.id = MH.message_part_id\nWHERE M.user_id = 'user_001'\n  AND MH.name = 'Subject' \n  AND MH.value = 'Salaries'\n  AND MH.name = 'To' \n  AND MH.value = 'all-staff@company.com';", "expected_value": 0, "comparison_type": "equals"}}]