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 audit who has access to my mailbox and organize my drafts.
First, show me everyone who currently has delegate access to my email account. I want to see all delegates regardless of their status - accepted, pending, or rejected.
Then I need to clean up my delegate list. I have someone with "rejected" status that I want to completely remove from my delegates list since they shouldn't appear there anymore. Find the delegate with rejected status and delete them.
After that, I want to check if any draft messages are present and delete them if any are.

Available tools:
list_drafts
email_delete_delegate
email_list_delegates
delete_draft

Verification checks:
[{"verifier_type": "database_state", "name": "Confirm Rejected Delegate Removed", "description": "Confirm Rejected Delegate Removed", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM delegates d\nJOIN users u ON u.id = d.user_id\nWHERE u.primary_email = 'carol@university.edu'\n  AND d.delegate_email = 'postdoc.fellow@university.edu';", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Draft should not be there", "description": "Draft should not be there", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(*) AS cnt\nFROM drafts d\nJOIN messages m ON m.id = d.message_id\nJOIN users u ON u.id = m.user_id\nWHERE u.primary_email = 'carol@university.edu';", "expected_value": 0, "comparison_type": "equals"}}]