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’m kicking off a new project and I’ll need the Technical Spec file as my baseline.
Can you help me get everything set up?

First, please create a new file called “Project Plan – Q4” as pdf. 

After that, make a copy of “Technical Spec.pdf” and rename that copy to “Technical Spec – V2”
Keep it in the same drive, same folder, and same file type as the original, just to keep everything tidy and consistent.

And instead of deleting any comments from the original file, I need you to simply rename the original “Technical Spec.pdf” to “Technical Spec – V1”
That way, we get a clean version history the untouched original as V1 and the working editable copy as V2.

Lastly, please set up a "watch_files" web_hook for the new “Project Plan – Q4” file at this URL:
https://www.googleapis.com/drive/v3/changes/project

Lastly, make sure all the files are in the same folder as the Technical Spec file. Let me know once everything is in place.Let me know once everything is in place.

Available tools:
copy_files
create_file
list_files
watch_files
update_files

Verification checks:
[{"verifier_type": "database_state", "name": "Original File Renamed to V1", "description": "Verify that the original Technical Spec file has been renamed from \"Technical Spec.pdf\" to \"Technical Spec \u2013 V1\"", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) \nFROM files \nWHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P8R' \nAND name = 'Technical Spec \u2013 V1' \nAND mime_type = 'application/pdf'\nAND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": " Technical Spec Copy Created as V2", "description": "Verify that a copy of the Technical Spec file exists with name \"Technical Spec \u2013 V2\"", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) \nFROM files \nWHERE name = 'Technical Spec \u2013 V2' \nAND mime_type = 'application/pdf'\nAND trashed = false\nAND drive_id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\nAND parent_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": " Project Plan Q4 File Created", "description": "Verify that a new file named \"Project Plan \u2013 Q4\" has been created in the correct folder", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) \nFROM files \nWHERE name = 'Project Plan \u2013 Q4' \nAND mime_type = 'application/pdf'\nAND trashed = false\nAND drive_id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\nAND parent_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Project Plan Watch Channel Active", "description": "Verify that a watch channel is set up for the Project Plan Q4 file at the correct", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) \nFROM channels \nWHERE address = 'https://www.googleapis.com/drive/v3/changes/project'\n  AND type = 'web_hook'\n  AND active = true;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Both Technical Spec Versions Exist", "description": "Verify that both Technical Spec V1 and V2 files exist in the same drive and folder", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH v1_check AS (\n  SELECT COUNT(*) as v1_count \n  FROM files \n  WHERE name = 'Technical Spec \u2013 V1' \n    AND drive_id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\n    AND parent_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q'\n    AND trashed = false\n),\nv2_check AS (\n  SELECT COUNT(*) as v2_count \n  FROM files \n  WHERE name = 'Technical Spec \u2013 V2' \n    AND drive_id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\n    AND parent_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q'\n    AND trashed = false\n)\nSELECT (v1_count + v2_count) as total_versions\nFROM v1_check, v2_check", "expected_value": 2, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Original File Renamed to V1", "description": "Verify that the original Technical Spec file has been renamed from \"Technical Spec.pdf\" to \"Technical Spec \u2013 V1\"", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) \nFROM files \nWHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P8R' \nAND name = 'Technical Spec \u2013 V1' \nAND mime_type = 'application/pdf'\nAND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": " Technical Spec Copy Created as V2", "description": "Verify that a copy of the Technical Spec file exists with name \"Technical Spec \u2013 V2\"", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) \nFROM files \nWHERE name = 'Technical Spec \u2013 V2' \nAND mime_type = 'application/pdf'\nAND trashed = false\nAND drive_id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\nAND parent_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": " Project Plan Q4 File Created", "description": "Verify that a new file named \"Project Plan \u2013 Q4\" has been created in the correct folder", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) \nFROM files \nWHERE name = 'Project Plan \u2013 Q4' \nAND mime_type = 'application/pdf'\nAND trashed = false\nAND drive_id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\nAND parent_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Project Plan Watch Channel Active", "description": "Verify that a watch channel is set up for the Project Plan Q4 file at the correct", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) \nFROM channels \nWHERE address = 'https://www.googleapis.com/drive/v3/changes/project'\n  AND type = 'web_hook'\n  AND active = true;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Both Technical Spec Versions Exist", "description": "Verify that both Technical Spec V1 and V2 files exist in the same drive and folder", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH v1_check AS (\n  SELECT COUNT(*) as v1_count \n  FROM files \n  WHERE name = 'Technical Spec \u2013 V1' \n    AND drive_id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\n    AND parent_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q'\n    AND trashed = false\n),\nv2_check AS (\n  SELECT COUNT(*) as v2_count \n  FROM files \n  WHERE name = 'Technical Spec \u2013 V2' \n    AND drive_id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\n    AND parent_id = '01JBQM3K8TGHZX9RNVQM5Y2P8Q'\n    AND trashed = false\n)\nSELECT (v1_count + v2_count) as total_versions\nFROM v1_check, v2_check", "expected_value": 2, "comparison_type": "equals"}}]