Domain: hybrid

System prompt:
You are an integrated automation agent for a hybrid environment managing both Google Drive and ServiceNow IT Service Management (ITSM). You have full administrative permissions to manage users, cases, products, calendars, and meetings in a safe and authorized capacity. Do not ask for confirmation before taking action.

Task:
Conducting root cause analysis for the SAP memory leak problem and need comprehensive audit documentation with revision tracking for compliance purposes.

List all problems in the system to identify the SAP memory leak investigation record and understand its current status and root cause findings. Pull the linked incident that triggered this problem investigation by searching for the SAP DB Unreachable incident, then retrieve all configuration items affected by that incident to document the complete blast radius.

Before creating files, verify Drive storage quota availability. Search existing documents using MIME type filter for Google Docs and retrieve the complete revision history for the document named "HR Policies" to establish a verified change audit trail demonstrating proper version control practices.

Create a new root cause analysis document named "RCA-SAP-Memory-Leak-December-2024" and update its metadata description with the comprehensive findings: problem details from the list, root cause memory management defect, linked incident details, affected configuration items count, resolution status memory optimization implemented, revision audit verified, and analysis timestamp December 2024.

Look up Scott Mitchell to get his verified contact information, then send notification with subject "RCA Complete: SAP Memory Leak Problem Resolved" and message confirming the root cause analysis is finalized with documentation and revision audits published to Drive using type "update" and status "queued".

Available tools:
list_problems
get_about
send_notification
create_file
get_user_using_name
list_incident_affected_cis
list_revisions
find_incident_by_number
update_files
list_files

Verification checks:
[{"verifier_type": "database_state", "name": "RCA Document Created", "description": "Verifies that RCA Document Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS doc_count FROM files WHERE name = 'RCA-SAP-Memory-Leak-December-2024' AND mime_type = 'application/vnd.google-apps.document' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains Problem Details", "description": "Verifies that Document Description Contains Problem Details", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS problem_count FROM files WHERE name = 'RCA-SAP-Memory-Leak-December-2024' AND description LIKE '%PRB_001%' AND description LIKE '%memory%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains Incident Reference", "description": "Verifies that Document Description Contains Incident Reference", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS incident_count FROM files WHERE name = 'RCA-SAP-Memory-Leak-December-2024' AND description LIKE '%INC-000001%' AND description LIKE '%SAP DB Unreachable%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains Resolution and Audit Info", "description": "Verifies that Document Description Contains Resolution and Audit Info", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS resolution_count FROM files WHERE name = 'RCA-SAP-Memory-Leak-December-2024' AND description LIKE '%Resolution%' AND description LIKE '%Revision Audit%' AND description LIKE '%December 2024%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Notification Created with Correct Subject", "description": "Verifies that Notification Created with Correct Subject", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT COUNT(*) AS notif_count FROM notification WHERE subject LIKE '%RCA Complete%' AND subject LIKE '%SAP Memory Leak%'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Notification Has Correct Type and Status", "description": "Verifies that Notification Has Correct Type and Status", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT COUNT(*) AS type_count FROM notification WHERE subject LIKE '%RCA Complete%' AND type = 'update' AND status = 'queued'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Notification Message Contains Resolution Details", "description": "Verifies that Notification Message Contains Resolution Details", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT COUNT(*) AS msg_count FROM notification WHERE subject LIKE '%RCA Complete%' AND message LIKE '%memory management defect%' AND message LIKE '%INC-000001%'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Notification Sent to Correct Recipient", "description": "Verifies that Notification Sent to Correct Recipient", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT COUNT(*) AS email_count FROM notification WHERE subject LIKE '%RCA Complete%' AND email = 'scott.mitchell@servicenow.com' AND status = 'queued'\n", "expected_value": 1, "comparison_type": "equals"}}]