# wa_connect_instance

Connect a WhatsApp instance. For Baileys instances, this starts the WebSocket connection and generates a QR code for authentication.

Agent View of the PolicyLayer registry record for `wa_connect_instance`. HTML page: https://policylayer.com/tools/delltrak-wamcp/wa-connect-instance

## Facts

- Tool: `wa_connect_instance`
- Server: WA MCP (`delltrak/wamcp`) — https://policylayer.com/tools/delltrak-wamcp.md
- Homepage: https://github.com/delltrak/wamcp
- Risk category: Execute (High risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "wa_connect_instance",
    "arguments": {}
  }
}
```

## Why wa_connect_instance is rated High

This tool initiates an external network connection (WebSocket) and triggers an authentication flow. It doesn't merely read or write data — it executes an external operation whose effects depend on the instance state. Misuse could allow an AI agent to establish unauthorized WhatsApp sessions, giving it access to messaging, contacts, and groups at scale.

From the tool's own definition: "Connect a WhatsApp instance... starts the WebSocket connection and generates a QR code for authentication"

## Use case

AI agents invoke wa_connect_instance to trigger actions in WA MCP. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches WA MCP:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "wa_connect_instance": {
      "limits": [
        {
          "counter": "wa_connect_instance_rate",
          "window": "minute",
          "max": 10,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on WA MCP (61)

- `wa_clear_chat` — Destructive — https://policylayer.com/tools/delltrak-wamcp/wa-clear-chat.md
- `wa_delete_chat` — Destructive — https://policylayer.com/tools/delltrak-wamcp/wa-delete-chat.md
- `wa_delete_instance` — Destructive — https://policylayer.com/tools/delltrak-wamcp/wa-delete-instance.md
- `wa_delete_message` — Destructive — https://policylayer.com/tools/delltrak-wamcp/wa-delete-message.md
- `wa_group_remove_participants` — Destructive — https://policylayer.com/tools/delltrak-wamcp/wa-group-remove-participants.md
- `wa_remove_profile_picture` — Destructive — https://policylayer.com/tools/delltrak-wamcp/wa-remove-profile-picture.md
- `wa_disconnect_instance` — Execute — https://policylayer.com/tools/delltrak-wamcp/wa-disconnect-instance.md
- `wa_group_leave` — Execute — https://policylayer.com/tools/delltrak-wamcp/wa-group-leave.md
- `wa_reject_call` — Execute — https://policylayer.com/tools/delltrak-wamcp/wa-reject-call.md
- `wa_restart_instance` — Execute — https://policylayer.com/tools/delltrak-wamcp/wa-restart-instance.md
- `wa_send_presence` — Execute — https://policylayer.com/tools/delltrak-wamcp/wa-send-presence.md
- `wa_check_number_exists` — Read — https://policylayer.com/tools/delltrak-wamcp/wa-check-number-exists.md
- `wa_get_business_profile` — Read — https://policylayer.com/tools/delltrak-wamcp/wa-get-business-profile.md
- `wa_get_messages` — Read — https://policylayer.com/tools/delltrak-wamcp/wa-get-messages.md
- `wa_get_pairing_code` — Read — https://policylayer.com/tools/delltrak-wamcp/wa-get-pairing-code.md
- `wa_get_qr_code` — Read — https://policylayer.com/tools/delltrak-wamcp/wa-get-qr-code.md
- `wa_group_get_invite_code` — Read — https://policylayer.com/tools/delltrak-wamcp/wa-group-get-invite-code.md
- `wa_search_contact` — Read — https://policylayer.com/tools/delltrak-wamcp/wa-search-contact.md
- `wa_archive_chat` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-archive-chat.md
- `wa_block_contact` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-block-contact.md
- `wa_create_group` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-create-group.md
- `wa_create_instance` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-create-instance.md
- `wa_edit_message` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-edit-message.md
- `wa_forward_message` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-forward-message.md
- `wa_group_add_participants` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-group-add-participants.md
- `wa_group_demote` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-group-demote.md
- `wa_group_handle_request` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-group-handle-request.md
- `wa_group_join` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-group-join.md
- `wa_group_promote` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-group-promote.md
- `wa_group_revoke_invite` — Write — https://policylayer.com/tools/delltrak-wamcp/wa-group-revoke-invite.md
- …and 31 more: https://policylayer.com/tools/delltrak-wamcp.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=delltrak-wamcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/delltrak-wamcp
