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, I’ve been reviewing some of the files on the drive, and I noticed a few issues with labels and comments. I need your help to tidy things up.

Please check my drive and clear all the comments on the files only if the file does not have a critical label.

Also, for the Technical Spec file, make sure its label is set to critical.

And if any file already has a critical label, make a copy of that file first, then clear the comments from the original version.

Available tools:
copy_files
list_comments
list_files
list_files_labels
modify_files_labels
delete_comments

Verification checks:
[{"verifier_type": "database_state", "name": " Technical Spec Copy Exists", "description": "Verify a copy of Technical Spec file was created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM files WHERE name = 'Copy of Technical Spec.pdf' AND mime_type = 'application/pdf'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Technical Spec Has Critical Label", "description": "Verify Technical Spec file has priority label set to critical", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM file_labels WHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R' AND label_id = '01JBQM3K8TGHZX9RNVQM5Y2P9U' AND value_enum = 'critical'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Technical Spec Comments Cleared", "description": " Verify all comments are deleted from Technical Spec original file", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) FROM comments WHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R' AND deleted = false", "expected_value": 0, "comparison_type": "equals"}}]