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:
I need to perform an SLA breach analysis workflow that documents breached service level agreements and creates a tracking incident for remediation follow-up, integrating our ITSM system with Google Drive for compliance documentation.

First, retrieve all incident SLA records that have been breached by filtering for has_breached equals true to identify all SLA violations requiring analysis and documentation.

Then retrieve the SLA definition details for the definition named "Priority 3 - Resolution" to understand the target metrics and configuration for the breached SLA.

Retrieve the full details of incident number INC-000042 which is associated with one of the breached SLA records to document the incident context and understand why the SLA was missed.

On the Google Drive side, retrieve the current Drive account information including storage quota limits, current usage amounts, usage breakdown, and authenticated user details to verify we have sufficient storage capacity for creating the compliance documentation.

List all shared drives in the organization using a page size of 100 to inventory the available shared drive infrastructure and identify where compliance documents should be stored.

Create a new Google Document named "SLA-Breach-Analysis-Report-December-2024" with MIME type "application/vnd.google-apps.document" and initial description "SLA breach analysis and compliance documentation for December 2024 audit period" and place it in "Data Engineering 2026" drive.

Update the created document by setting its description to a comprehensive summary that includes: total breached SLA count from the find_incident_slas query, SLA definition name Priority 3 - Resolution with target 1440 minutes, breached incident INC-000042 with short description Internet Slow, incident state resolved, breach reason resolution target exceeded, storage quota usage from get_about response, shared drives count from list_drives response, and audit timestamp December 2024.

Create a new incident in the ITSM system to track SLA breach remediation with short_description set to "SLA Breach Remediation Tracking - December 2024 Audit", description set to "Tracking incident created for SLA breach remediation follow-up. Breached SLAs identified during December 2024 compliance audit. Primary breach: INC-000042 Priority 3 Resolution SLA exceeded target of 1440 minutes. Analysis document published to Google Drive: SLA-Breach-Analysis-Report-December-2024. Requires process improvement review and corrective action planning.", category set to "software", priority set to "moderate", urgency set to "medium", impact set to "medium", caller_id set to "USER_080", assigned_to set to "USER_049", assignment_group set to "GROUP_008", and channel set to "self-service".

Finally, send a notification for the newly created tracking incident to email robin.monroe83@servicenow.com with subject "ACTION REQUIRED: SLA Breach Analysis Complete - December 2024 Audit" and message "The SLA breach analysis for December 2024 has been completed. Breached SLA records have been documented and a comprehensive analysis report has been published to Google Drive. A tracking incident has been created for remediation follow-up. Please review the findings and coordinate with the L2 Infra Team to implement corrective actions. Primary breach identified: INC-000042 exceeded Priority 3 Resolution target." using type "alert" and status "queued".

Available tools:
create_incident
find_incident_by_number
create_file
list_drives
find_sla_definition_by_name
get_about
send_notification
find_incident_slas
update_files

Verification checks:
[{"verifier_type": "database_state", "name": "SLA Breach Analysis Document Created", "description": "Verifies that SLA Breach Analysis Document Created", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS doc_count FROM files WHERE name = 'SLA-Breach-Analysis-Report-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 SLA Breach Information", "description": "Verifies that  Document Description Contains SLA Breach Information", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS breach_count FROM files WHERE name = 'SLA-Breach-Analysis-Report-December-2024' AND description LIKE '%Priority 3 - Resolution%' AND description LIKE '%INC-000042%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains Storage Quota Information", "description": "Verifies that  Document Description Contains Storage Quota Information", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS quota_count FROM files WHERE name = 'SLA-Breach-Analysis-Report-December-2024' AND description LIKE '%Storage Quota%' AND description LIKE '%December 2024%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Document Description Contains Breach Count", "description": "Verifies that  Document Description Contains Breach Count", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT COUNT(*) AS count_info FROM files WHERE name = 'SLA-Breach-Analysis-Report-December-2024' AND description LIKE '%Breached SLA Count%' AND description LIKE '%resolved%' AND trashed = false", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Tracking Incident Created with Correct Short Description", "description": "Verifies that Tracking Incident Created with Correct Short Description", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT COUNT(*) AS incident_count FROM incident WHERE short_description = 'SLA Breach Remediation Tracking - December 2024 Audit' AND category = 'software' AND priority = 'moderate'\n", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Tracking Incident Assigned to Correct Group", "description": "Verifies that Tracking Incident Assigned to Correct Group", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT COUNT(*) AS assign_count FROM incident WHERE short_description = 'SLA Breach Remediation Tracking - December 2024 Audit' AND assignment_group = 'GROUP_008' AND assigned_to = 'USER_049'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Stakeholder Notification Created with Correct Subject", "description": "Verifies that Stakeholder Notification Created with Correct Subject", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT COUNT(*) AS notif_count FROM notification WHERE subject LIKE '%SLA Breach Analysis Complete%' AND subject LIKE '%December 2024%' AND type = 'alert'", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Notification Sent to Correct Manager Email", "description": "Verifies that Notification Sent to Correct Manager Email", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT COUNT(*) AS email_count FROM notification WHERE email = 'robin.monroe83@servicenow.com' AND subject LIKE '%SLA Breach Analysis Complete%' AND status = 'queued'\n", "expected_value": 1, "comparison_type": "equals"}}]