{
  "name": "Context-aware Google Calendar management with MCP protocol",
  "nodes": [
    {
      "id": "17ccfdbf-d121-4ff0-95d4-bb38644d2bb1",
      "name": "MCP Server Trigger",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        80,
        -40
      ]
    },
    {
      "id": "174a13be-04f1-417c-8510-26798dae3447",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1060,
        220
      ]
    },
    {
      "id": "f74799f0-67b4-4247-905c-46adb1be4739",
      "name": "Operation",
      "type": "n8n-nodes-base.switch",
      "position": [
        1460,
        180
      ]
    },
    {
      "id": "b8007362-0d41-4875-872b-877f33b74bf8",
      "name": "validate_busy_time",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -80,
        240
      ]
    },
    {
      "id": "51f39673-4657-401b-b1bf-34e816318acf",
      "name": "create_new_event",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        80,
        240
      ]
    },
    {
      "id": "3587c022-2f57-4bf6-8066-c292bcab5399",
      "name": "delete_event",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        360,
        240
      ]
    },
    {
      "id": "1da9a808-b478-47cd-b129-2a11d83d8735",
      "name": "update_event",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        220,
        240
      ]
    },
    {
      "id": "f3105e5b-0dec-44d0-ba5c-5bd91b0887d1",
      "name": "validate_availability_event",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        2100,
        -220
      ]
    },
    {
      "id": "43f2125b-85ea-455d-92ed-b84d0eb4a566",
      "name": "check_availability_to_create",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        1780,
        220
      ]
    },
    {
      "id": "7f2e1fef-79cb-4728-aa63-1afe038598ab",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        2000,
        220
      ]
    },
    {
      "id": "b2523fe9-526b-4617-b404-59a0b0e6d0e0",
      "name": "Stop and Error",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        2220,
        320
      ]
    },
    {
      "id": "c72026c4-820d-4be0-9bbd-37b9ec6d2bf1",
      "name": "create_event",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        2220,
        160
      ]
    },
    {
      "id": "61f84fdb-768e-4b5f-9df9-21316dfa7678",
      "name": "delete_event1",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        2120,
        -20
      ]
    },
    {
      "id": "2544e1e6-e620-4794-b1d4-898b2e9722ad",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        2320,
        -220
      ]
    },
    {
      "id": "966dc7bb-b2c8-40b1-95d9-ad10b232d1b2",
      "name": "get_event_in_time_gap",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        1860,
        700
      ]
    },
    {
      "id": "7010b476-f500-4891-a795-30c75f0f077c",
      "name": "update_calendar",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        1860,
        480
      ]
    },
    {
      "id": "933163a6-5597-48da-95de-7067dd55ad84",
      "name": "get_events_in_gap_time",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        520,
        240
      ]
    },
    {
      "id": "01c9435e-0258-4048-a3ad-cf84424fad6c",
      "name": "map_data",
      "type": "n8n-nodes-base.set",
      "position": [
        1240,
        220
      ]
    },
    {
      "id": "0e3a8817-7485-499c-9692-7b920bb34b3f",
      "name": "response_data_get_data",
      "type": "n8n-nodes-base.set",
      "position": [
        2080,
        700
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "create_event",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Stop and Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "map_data": {
      "main": [
        [
          {
            "node": "Operation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Operation": {
      "main": [
        [
          {
            "node": "validate_availability_event",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "delete_event1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "check_availability_to_create",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "update_calendar",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get_event_in_time_gap",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "delete_event": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "update_event": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "create_new_event": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "validate_busy_time": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "get_event_in_time_gap": {
      "main": [
        [
          {
            "node": "response_data_get_data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_events_in_gap_time": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "validate_availability_event": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check_availability_to_create": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "map_data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}