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:
Hey, can you list all the folders for me? Then, for each folder found, grab the most recent file inside and update its descriptions with 'File in folder: [folder name]', but skip any files with 'draft' in the name. Next, add comments with 'filename-exported' to each updated file, then download those files simultaneously. Finally, star each folder that had files processed and share intern@company.com the parent folder with view access. Thanks.

Available tools:
update_files
create_permission
download_files
list_files
create_comments

Verification checks:
[{"verifier_type": "database_state", "name": "Verify comments added", "description": "Verify that a comment is added in the right format", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN EXISTS (\n      SELECT 1 \n      FROM comments \n      WHERE content = 'Hello_world.txt-exported'\n    ) \n    THEN 1 \n    ELSE 0 \n  END AS comment_exists;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify that description is added", "description": "Verify that we have a description called File located in folder: Project Documents", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN EXISTS (\n      SELECT 1 \n      FROM files \n      WHERE description LIKE '%File in folder: Project Documents%'\n    ) \n    THEN 1 \n    ELSE 0 \n  END AS description_exists;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify file downloaded", "description": "Verify hello world file downloaded", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN EXISTS (\n      SELECT 1 \n      FROM operations \n      WHERE status = 'done' \n        AND response_data LIKE '%Hello_world.txt%'\n    ) \n    THEN 1 \n    ELSE 0 \n  END AS hello_text_downloaded;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify folder is starred ", "description": "Verify project documents folder is starred ", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN EXISTS (\n      SELECT 1 \n      FROM files \n      WHERE name = 'Project Documents' \n        AND mime_type = 'application/vnd.google-apps.folder'\n        AND starred = 1\n    ) \n    THEN 1 \n    ELSE 0 \n  END AS project_document_folder_starred;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Intern has permission to project documents", "description": "Intern has permission to project documents", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n  CASE \n    WHEN EXISTS (\n      SELECT 1 \n      FROM permissions p\n      JOIN users u ON p.user_id = u.id\n      WHERE p.file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q'  -- Project Documents folder ID\n        AND u.email = 'intern@company.com'\n    ) \n    THEN 1 \n    ELSE 0 \n  END AS intern_has_permission_to_project_documents;", "expected_value": 1, "comparison_type": "equals"}}]