{
  "name": "Zero-Fluff Ops #006 — Scoped MCP Tool Gateway (Make.com)",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {},
      "mapper": {},
      "metadata": {
        "designer": { "x": 0, "y": 0 },
        "notes": "Step 1: Receive authenticated MCP-bridge / HTTP tool call (action, query, token)."
      }
    },
    {
      "id": 2,
      "module": "builtin:BasicRouter",
      "version": 1,
      "routes": [
        {
          "flow": [
            {
              "id": 3,
              "module": "notion:searchObjects",
              "version": 1,
              "filter": {
                "name": "Early Input Guardrail & SOP Route",
                "conditions": [
                  [
                    {
                      "a": "{{1.action}}",
                      "b": "search_sop",
                      "o": "text:equal"
                    },
                    {
                      "a": "{{length(1.query)}}",
                      "b": "3",
                      "o": "number:greater"
                    }
                  ]
                ]
              },
              "mapper": {
                "query": "{{1.query}}",
                "limit": 3
              },
              "metadata": {
                "designer": { "x": 360, "y": -100 },
                "notes": "Step 2-4: Guardrail drops <3 char queries ($0), searches Notion, caps to 3 items."
              }
            },
            {
              "id": 4,
              "module": "gateway:WebhookRespond",
              "version": 1,
              "mapper": {
                "status": 200,
                "body": "{\"ok\": true, \"action\": \"search_sop\", \"results\": {{3.results}}}"
              },
              "metadata": {
                "designer": { "x": 680, "y": -100 },
                "notes": "Return compact JSON payload back to MCP client."
              }
            }
          ]
        },
        {
          "flow": [
            {
              "id": 5,
              "module": "clickup:createTask",
              "version": 1,
              "filter": {
                "name": "Create Task Route",
                "conditions": [
                  [
                    {
                      "a": "{{1.action}}",
                      "b": "create_task",
                      "o": "text:equal"
                    },
                    {
                      "a": "{{length(1.title)}}",
                      "b": "3",
                      "o": "number:greater"
                    }
                  ]
                ]
              },
              "mapper": {
                "name": "{{1.title}}",
                "description": "{{1.notes}}"
              },
              "metadata": {
                "designer": { "x": 360, "y": 120 },
                "notes": "Deterministic ClickUp task creation without burning workspace AI Super Credits."
              }
            },
            {
              "id": 6,
              "module": "gateway:WebhookRespond",
              "version": 1,
              "mapper": {
                "status": 200,
                "body": "{\"ok\": true, \"action\": \"create_task\", \"task_id\": \"{{5.id}}\"}"
              },
              "metadata": {
                "designer": { "x": 680, "y": 120 },
                "notes": "Step 5: Return task confirmation & audit trace."
              }
            }
          ]
        }
      ],
      "metadata": {
        "designer": { "x": 200, "y": 0 },
        "notes": "Routers cost 0 credits on Make.com."
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true
    },
    "author": "Zero-Fluff Ops (zerofluffops.substack.com)"
  }
}
