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 have to take urgent leave starting immediately. Please set up my account:

Turn on my vacation responder. The subject should be 'Urgent Leave'. It starts now and ends next week. Make sure to convert the dates to iso timestamps, and set the remaining parameters to the default.
Add 'alex@work.com' as an accepted delegate so he can manage my inbox.
Create a label named 'Urgent-Review'.
Create a filter so that emails from 'vip@client.com' are automatically tagged with 'Urgent-Review' neglecting the remaining parameters or setting them to the default values except the "to" to wildcard "*".

Draft an email to 'alex@work.com' with the subject 'Handover' and body 'Thanks for covering.'

Available tools:
create_draft
email_create_delegate
create_filter
update_vacation_settings
create_label

Verification checks:
[{"verifier_type": "database_state", "name": "Verify Vacation Settings", "description": "Verify Vacation Settings Done Successfully", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT COUNT(id)\nFROM vacation_settings\nWHERE user_id = 'user_001'\n  AND enable_auto_reply = 1\n  AND response_subject = 'Urgent Leave'\n  AND CAST(start_time AS INTEGER) > 1700000000000;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Delegate & Filter Setup", "description": "Verify Delegate & Filter Setup Completed Successfully", "gym_name": "gym-email-mcp", "validation_config": {"query": "SELECT \n    (SELECT COUNT(id) FROM delegates \n     WHERE user_id = 'user_001' AND delegate_email = 'alex@work.com')\n    +\n    (SELECT COUNT(F.id) FROM filters AS F\n     JOIN labels AS L ON F.user_id = L.user_id\n     WHERE F.user_id = 'user_001' \n       AND L.name = 'Urgent-Review'\n       AND json_extract(F.criteria_json, '$.from') = 'vip@client.com');", "expected_value": 2, "comparison_type": "equals"}}]