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 finalize the 'Technical Spec.pdf' document for the Q1 partnership review meeting. The outstanding access request from external.user@partner.com should be granted with viewing privileges, and consultant@external.com requires commenting capabilities for technical feedback. Update the document description to indicate "Q1 Partnership Review - External Collaboration Enabled". The file also needs partnership tracking metadata including partnership_phase(Q1_review), external_access(enabled), and review_status(in_progress). Finally, add a comment with the text "Partnership review preparation complete: external.user@partner.com granted viewing access, consultant@external.com granted commenting access for technical feedback."

Available tools:
update_files
create_permission
list_files
list_comments
resolve_accessproposals
create_comments
list_accessproposals

Verification checks:
[{"verifier_type": "database_state", "name": "Access Proposal Approved for External Partner", "description": "Access Proposal Approved for External Partner", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH external_proposal AS (\n  SELECT\n    id,\n    file_id,\n    requester_email,\n    status,\n    resolved_by_email,\n    resolved_at\n  FROM access_proposals\n  WHERE id = '01JBQM3K8TGHZX9RNVQM5Y2PAZ'\n    AND file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n    AND requester_email = 'external.user@partner.com'\n)\nSELECT COUNT(*) AS cnt\nFROM external_proposal\nWHERE status = 'approved'\n  AND resolved_by_email = 'john.smith@company.com'\n  AND resolved_at IS NOT NULL;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "External Permissions Created for Both Stakeholders", "description": "External Permissions Created for Both Stakeholders", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH external_users AS (\n  SELECT id, email\n  FROM users\n  WHERE email IN ('external.user@partner.com', 'consultant@external.com')\n),\nexternal_permissions AS (\n  SELECT\n    p.file_id,\n    u.email,\n    p.role,\n    p.type,\n    p.deleted\n  FROM permissions p\n  INNER JOIN external_users u ON u.id = p.user_id\n  WHERE p.file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n    AND p.deleted = 0\n)\nSELECT COUNT(*) AS cnt\nFROM external_permissions\nWHERE (email = 'external.user@partner.com' AND role = 'reader')\n   OR (email = 'consultant@external.com' AND role = 'commenter');", "expected_value": 2, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Partnership Metadata and Description Updated", "description": "Partnership Metadata and Description Updated", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH file_metadata AS (\n  SELECT\n    id,\n    description,\n    properties\n  FROM files\n  WHERE id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n    AND trashed = 0\n)\nSELECT COUNT(*) AS cnt\nFROM file_metadata\nWHERE LOWER(description) LIKE '%q1 partnership review%'\n  AND LOWER(description) LIKE '%external collaboration enabled%'\n  AND json_extract(properties, '$.partnership_phase') = 'Q1_review'\n  AND json_extract(properties, '$.external_access') = 'enabled'\n  AND json_extract(properties, '$.review_status') = 'in_progress';", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Partnership Documentation Comment Created", "description": "Partnership Documentation Comment Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "WITH audit_comment AS (\n  SELECT\n    file_id,\n    content,\n    author_id,\n    deleted,\n    created_time\n  FROM comments\n  WHERE file_id = '01JBQM3K8TGHZX9RNVQM5Y2P8R'\n    AND deleted = 0\n    AND LOWER(content) LIKE '%partnership review preparation complete%'\n    AND LOWER(content) LIKE '%external.user@partner.com%'\n    AND LOWER(content) LIKE '%consultant@external.com%'\n)\nSELECT COUNT(*) AS cnt\nFROM audit_comment\nWHERE author_id = '01JBQM3K8TGHZX9RNVQM5Y2P7W';", "expected_value": 1, "comparison_type": "equals"}}]