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:
John Smith needs to reorganize the 'Engineering Projects' shared drive for improved security. Update the drive settings to restrict folder sharing so only organizers can share folders, and enable download restrictions for readers. On the 'Technical Spec.pdf' document, update the metadata properties to include security_classification(confidential), access_governance(enabled), and last_review_date(2024-01-27). The Engineering Team group currently has writer access to this file, but that group permission should be removed entirely for tighter access control. Alex Rodriguez's commenter permission also needs to be revoked. Update the existing comment about the project timeline to add "Security review completed - access governance measures applied." at the end. Finally, add a new comment to the Technical Spec with the text "Engineering Drive reorganization completed: drive-level sharing restrictions enabled, file access governance tightened, outdated group and individual permissions removed."

Available tools:
update_drives
update_comments
delete_permission
list_comments
update_files
create_comments
list_drives
list_permission
list_files

Verification checks:
[{"verifier_type": "database_state", "name": "Engineering Projects Drive Restrictions Enabled", "description": "Engineering Projects Drive Restrictions Enabled", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH drive_restrictions AS (\n  SELECT\n    id,\n    name,\n    sharing_folders_requires_organizer_permission,\n    download_restricted_for_readers\n  FROM drives\n  WHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P8B'\n    AND trashed = 0\n)\nSELECT COUNT(*) AS cnt\nFROM drive_restrictions\nWHERE sharing_folders_requires_organizer_permission = 1\n  AND download_restricted_for_readers = 1;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Technical Spec Security Metadata Properties Updated", "description": "Technical Spec Security Metadata Properties Updated", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH security_metadata AS (\n  SELECT\n    id,\n    properties\n  FROM files\n  WHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n    AND trashed = 0\n)\nSELECT COUNT(*) AS cnt\nFROM security_metadata\nWHERE json_extract(properties, '$.security_classification') = 'confidential'\n  AND json_extract(properties, '$.access_governance') = 'enabled'\n  AND json_extract(properties, '$.last_review_date') = '2024-01-27';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Engineering Team Group and Alex Rodriguez Permissions Removed", "description": "Engineering Team Group and Alex Rodriguez Permissions Removed", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH engineering_team_permission AS (\n  SELECT\n    *\n  FROM permissions\n  WHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P91'\n),\nalex_rodriguez_permission AS (\n  SELECT\n    *\n  FROM permissions\n  WHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P95'\n)\nSELECT\n  CASE\n    WHEN (SELECT COUNT(*) FROM engineering_team_permission) = 0\n     AND (SELECT COUNT(*) FROM alex_rodriguez_permission) = 0\n    THEN 1\n    ELSE 0\n  END AS cnt;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Security Review Comment Updated and Reorganization Comment Created", "description": "Security Review Comment Updated and Reorganization Comment Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH updated_implementation_comment AS (\n  SELECT\n    id,\n    file_id,\n    content,\n    modified_time,\n    deleted\n  FROM comments\n  WHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P96'\n    AND file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n    AND deleted = 0\n    AND LOWER(content) LIKE '%security review completed%'\n    AND LOWER(content) LIKE '%access governance measures applied%'\n),\nreorganization_comment AS (\n  SELECT\n    file_id,\n    content,\n    author_id,\n    deleted\n  FROM comments\n  WHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n    AND deleted = 0\n    AND LOWER(content) LIKE '%engineering drive reorganization completed%'\n    AND LOWER(content) LIKE '%drive-level sharing restrictions enabled%'\n    AND author_id = '01JBQM3K8TGHZX9RNVQM5Y2P7W'\n)\nSELECT\n  CASE\n    WHEN (SELECT COUNT(*) FROM updated_implementation_comment) >= 1\n     AND (SELECT COUNT(*) FROM reorganization_comment) >= 1\n    THEN 1\n    ELSE 0\n  END AS cnt;", "expected_value": 1, "comparison_type": "equals"}}]