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. For any tool that supports the 'supportsAllDrives' key, you must include it in the tool request body and set its value to true. A user must have the right privilege to carry out a change on any resource.

Task:
Emily needs a structured workspace for the employee handbook revision project. The workspace must include a dedicated 'Project Phoenix' folder containing the existing 'Employee Handbook.docx' file, with the HR Department team (hr@company.com) having full editing capabilities. The folder requires metadata indicating project_status as 'planning', and a documentation comment stating "Project Phoenix initialized. The source document contains no existing comments. All feedback and revisions will be tracked here."

Available tools:
list_files
create_comments
create_file
list_comments
create_permission
update_files

Verification checks:
[{"verifier_type": "database_state", "name": "Verify Folder Created", "description": "Verify Folder Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH new_folder AS (\n    SELECT\n        name,\n        mime_type,\n        trashed\n    FROM\n        files\n    WHERE\n        name = 'Project Phoenix'\n        AND mime_type = 'application/vnd.google-apps.folder'\n        AND trashed = 0\n)\nSELECT\n    COUNT(*) AS cnt\nFROM\n    new_folder;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify File Moved", "description": "Verify File Moved", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH file_parent AS (\n    SELECT\n        f.name,\n        f.parent_ids,\n        p.name AS parent_name\n    FROM\n        files f\n    JOIN\n        files p ON json_extract(f.parent_ids, '$[0]') = p.id\n    WHERE\n        f.name = 'Employee Handbook.docx'\n        AND p.name = 'Project Phoenix'\n        AND f.trashed = 0\n        AND p.trashed = 0\n)\nSELECT\n    COUNT(*) AS cnt\nFROM\n    file_parent;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Group Permission", "description": "Verify Group Permission", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH group_permission AS (\n    SELECT\n        p.role,\n        p.type,\n        p.deleted\n    FROM\n        permissions p\n    JOIN\n        groups g ON p.group_id = g.id\n    JOIN\n        files f ON p.file_id = f.id\n    WHERE\n        f.name = 'Project Phoenix'\n        AND g.name = 'HR Department'\n        AND p.type = 'group'\n        AND p.deleted = 0\n        AND f.trashed = 0\n)\nSELECT\n    COUNT(*) AS cnt\nFROM\n    group_permission\nWHERE\n    role = 'writer';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Comment Acknowledges Context", "description": "Verify Comment Acknowledges Context", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH project_comment AS (\n    SELECT\n        c.content\n    FROM\n        comments c\n    JOIN\n        files f ON c.file_id = f.id\n    WHERE\n        f.name = 'Project Phoenix'\n        AND c.author_id = '01JBQM3K8TGHZX9RNVQM5Y2P7Z'\n        AND c.deleted = 0\n)\nSELECT\n    COUNT(*) AS cnt\nFROM\n    project_comment\nWHERE\n    content LIKE '%All 0 existing comments%' OR content LIKE '%no existing comments%' OR content LIKE '%contains no existing comments%';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify Folder Property Updated", "description": "Verify Folder Property Updated", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH folder_property AS (\n    SELECT\n        json_extract(properties, '$.project_status') AS project_status\n    FROM\n        files\n    WHERE\n        name = 'Project Phoenix'\n        AND mime_type = 'application/vnd.google-apps.folder'\n        AND trashed = 0\n)\nSELECT\n    COUNT(*) AS cnt\nFROM\n    folder_property\nWHERE\n    project_status = 'planning';", "expected_value": 1, "comparison_type": "equals"}}]