Domain: drive

System prompt:
You are a helpful Drive 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:
We got an intern who I'll address as Company Intern. Their email is intern@company.com. I want them to work with me the engineering team. Please give them read access to folders in the engineering drive. Also, create a "Check-in document" spreadsheet where the intern will update their daily activities and a comment "Please use this spreadsheet to drop your daily updates". I want to get notifications when any changes is made to the check-in document. Use these details for notifications ( id: checkin-watch-channel-001, resourceId: checkin-doc-resource-001, address: https://your-notification-endpoint.com/drive/notifications)

Available tools:
create_comments
list_files
list_drives
watch_files
create_permission
create_file

Verification checks:
[{"verifier_type": "database_state", "name": "Permission on \"Project Documents\" Folder", "description": "Check if the intern has the permission to access project document folder", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN EXISTS (\n      SELECT 1 \n      FROM permissions p\n      JOIN files f ON p.file_id = f.id\n      JOIN users u ON p.user_id = u.id\n      WHERE f.name = 'Project Documents'\n      AND u.email = 'intern@company.com'\n    ) \n    THEN 1 \n    ELSE 0 \n  END AS has_folder_access;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Permission on \"Check-in document\" file", "description": "Check if the intern has the permission to access check-in document", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN EXISTS (\n      SELECT 1 \n      FROM permissions p\n      JOIN files f ON p.file_id = f.id\n      JOIN users u ON p.user_id = u.id\n      WHERE f.name = 'Check-in document'\n      AND u.email = 'intern@company.com'\n    ) \n    THEN 1 \n    ELSE 0 \n  END AS has_folder_access;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "COMMENTS on Check-in document", "description": "Check if the comment for check-in document was added", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN EXISTS (\n      SELECT 1 \n      FROM comments c\n      JOIN files f ON c.file_id = f.id\n      WHERE f.name = 'Check-in document'\n      AND c.content = 'Please use this spreadsheet to drop your daily updates'\n    ) \n    THEN 1 \n    ELSE 0 \n  END AS comment_exists;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Notifcation created", "description": "Check if notification was created for check-in document", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  resource_id\nFROM channels\nWHERE resource_id LIKE '%check%';", "expected_value": "check", "comparison_type": "contains"}}, {"verifier_type": "database_state", "name": "Check-in document exists", "description": "Verify check-in document exists", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN EXISTS (\n      SELECT 1 \n      FROM files \n      WHERE name = 'Check-in document'\n    ) \n    THEN 1 \n    ELSE 0 \n  END AS checkin_document_exists;", "expected_value": 1, "comparison_type": "equals"}}]