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 need to prepare the Technical Spec PDF for client distribution and sanitize it thoroughly. Find the Technical Spec document in the engineering drive and do the following: first, unpublish any published revisions so it is no longer accessible via public links. Then go through all the comments on the document and delete any comments that were made by people outside our company domain - we cannot have external feedback visible in the client version. After cleaning up the comments, make a copy of the document and name it "Technical Spec - Client Version". Once you have the copy, share it with Emily Davis at emily.davis@company.com giving her editor access so she can do a final review before we send it out. Finally, on the original document add a comment stating "Client version created and shared with Emily for final review" so the team knows what happened.

Available tools:
create_permission
list_comments
copy_files
list_revisions
list_files
update_revisions
create_comments

Verification checks:
[{"verifier_type": "database_state", "name": "Marketing Presentation No Longer Published", "description": "Verifies that Marketing Presentation No Longer Published", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as published_count\nFROM revisions\nWHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8S'\n  AND published = true;", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "No External Comments on Marketing Presentation", "description": "Verifies that No External Comments on Marketing Presentation", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as external_comments\nFROM comments c\nJOIN users u ON c.author_id = u.id\nWHERE c.file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8S'\n  AND u.email NOT LIKE '%@company.com'\n  AND c.deleted = false;", "expected_value": 0, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Internal Comments Preserved", "description": "Verifies that Internal Comments Preserved", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as internal_comments\nFROM comments c\nJOIN users u ON c.author_id = u.id\nWHERE c.file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8S'\n  AND u.email LIKE '%@company.com'\n  AND c.deleted = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Client Version Copy Created", "description": "Verifies thaat Client Version Copy Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as client_copy_count\nFROM files\nWHERE name = 'Marketing Presentation - Client Version'\n  AND mime_type = 'application/vnd.google-apps.presentation'\n  AND trashed = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Emily Davis Has Editor Access to Client Version", "description": "Verifies that Emily Davis Has Editor Access to Client Version", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as emily_permission_count\nFROM permissions p\nJOIN files f ON p.file_id = f.id\nWHERE f.name = 'Marketing Presentation - Client Version'\n  AND p.email_address = 'emily.davis@company.com'\n  AND p.role = 'writer'\n  AND p.deleted = false;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Documentation Comment Added to Original", "description": "Verifies that Documentation Comment Added to Original", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) as doc_comment_count\nFROM comments\nWHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8S'\n  AND author_id = '01JBQM3K8TGHZX9RNVQM5Y2P7W'\n  AND content LIKE '%Client version%'\n  AND content LIKE '%Emily%'\n  AND deleted = false;", "expected_value": 1, "comparison_type": "equals"}}]