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:
Hey, I need to set up Project Phoenix for next week's kickoff. Can you handle this? First in SN-ITSM: Create a new incident with high priority called 'Project Phoenix Documentation Setup', caller Joanne Simpson, assigned to L2 IT Support. Then in Google Drive: Create the main 'Project Phoenix' folder in the Mobile Development Shared Drive. Inside it, create three subfolders: 'Docs', 'Presentations', and 'Reports'. Then back in SN-ITSM: Update the incident with the folder structure details, and the access link. Finally, create a knowledge article called 'Standard Project Documentation Setup Procedure' and link it to the incident created.

Available tools:
list_drives
find_group_by_name
get_user_using_name
update_incident
create_file
create_knowledge_article
create_incident

Verification checks:
[{"verifier_type": "database_state", "name": "Project Phoenix incident", "description": "Verify that project phoenix incident exists", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT \n    CASE \n        WHEN EXISTS (\n            SELECT 1 \n            FROM incident \n            WHERE short_description = 'Project Phoenix Documentation Setup'\n        ) THEN 1\n        ELSE 0\n    END as incident_exists;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Project Phoenix file", "description": "Verify that project phoenix file exists", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n    CASE \n        WHEN EXISTS (\n            SELECT 1 \n            FROM files \n            WHERE name LIKE '%Project Phoenix%'\n        ) THEN 1\n        ELSE 0\n    END as project_phoenix_file_exists;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Verify file in project phoenix folder", "description": "Verify that there are more than one file in project phoenix folder", "gym_name": "gym-google-drive-mcp", "validation_config": {"query": "SELECT \n    CASE \n        -- First check if Project Phoenix folder exists\n        WHEN NOT EXISTS (\n            SELECT 1 \n            FROM files \n            WHERE name LIKE '%Project Phoenix%'\n            AND mime_type = 'application/vnd.google-apps.folder'\n        ) THEN 0  -- Folder doesn't exist\n        \n        -- Count files in Project Phoenix folder\n        WHEN (\n            SELECT COUNT(*)\n            FROM files f\n            WHERE EXISTS (\n                SELECT 1 \n                FROM files folder\n                WHERE folder.id = f.parent_id\n                AND folder.name LIKE '%Project Phoenix%'\n                AND folder.mime_type = 'application/vnd.google-apps.folder'\n            )\n        ) > 1 THEN 1  -- More than one file in folder\n        \n        ELSE 0  -- Folder exists but has 0 or 1 file\n    END as more_than_one_file_in_project_phoenix_folder;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "knowledge article exists", "description": "Standard Project Documentation Setup Procedure knowledge article exists", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT \n    CASE \n        WHEN EXISTS (\n            SELECT 1 \n            FROM knowledge \n            WHERE title = 'Standard Project Documentation Setup Procedure'\n        ) THEN 1\n        ELSE 0\n    END as knowledge_article_exists;", "expected_value": 1, "comparison_type": "equals"}}, {"verifier_type": "database_state", "name": "Check Knowledge base link", "description": "Check Knowledge base linked to incident", "gym_name": "gym-itsm-mcp", "validation_config": {"query": "SELECT COUNT(*)\nFROM incident_knowledge\nWHERE knowledge_id = (\n    SELECT knowledge_id\n    FROM knowledge\n    WHERE title = 'Standard Project Documentation Setup Procedure'\n    LIMIT 1\n)\nAND incident_id = (\n    SELECT incident_id\n    FROM incident\n    WHERE short_description = 'Project Phoenix Documentation Setup'\n    LIMIT 1\n);\n", "expected_value": 1, "comparison_type": "equals"}}]