# toggleHttpInterception

启用或禁用HTTP拦截

Agent View of the PolicyLayer registry record for `toggleHttpInterception`. HTML page: https://policylayer.com/tools/7gugu-whistle-mcp/togglehttpinterception

## Facts

- Tool: `toggleHttpInterception`
- Server: Whistle (`7gugu/whistle-mcp`) — https://policylayer.com/tools/7gugu-whistle-mcp.md
- Homepage: https://github.com/7gugu/whistle-mcp
- 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": "toggleHttpInterception",
    "arguments": {}
  }
}
```

## Why toggleHttpInterception is rated High

This tool toggles HTTP interception on a proxy server, which is an operational state change that affects how network traffic is processed. It triggers an external operation (enabling/disabling proxy interception) that directly impacts network request handling. This goes beyond a simple write as it controls active network interception behavior, making Execute the most appropriate category.

From the tool's own definition: "启用或禁用HTTP拦截 (Enable or disable HTTP interception)"

## Use case

AI agents invoke toggleHttpInterception to trigger actions in Whistle. 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 Whistle:

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

## Other tools on Whistle (33)

- `deleteGroup` — Destructive — https://policylayer.com/tools/7gugu-whistle-mcp/deletegroup.md
- `deleteRule` — Destructive — https://policylayer.com/tools/7gugu-whistle-mcp/deleterule.md
- `deleteValue` — Destructive — https://policylayer.com/tools/7gugu-whistle-mcp/deletevalue.md
- `deleteValueGroup` — Destructive — https://policylayer.com/tools/7gugu-whistle-mcp/deletevaluegroup.md
- `replayRequest` — Execute — https://policylayer.com/tools/7gugu-whistle-mcp/replayrequest.md
- `toggleHttpsInterception` — Execute — https://policylayer.com/tools/7gugu-whistle-mcp/togglehttpsinterception.md
- `toggleProxy` — Execute — https://policylayer.com/tools/7gugu-whistle-mcp/toggleproxy.md
- `getAllValues` — Read — https://policylayer.com/tools/7gugu-whistle-mcp/getallvalues.md
- `getCurrentTimestamp` — Read — https://policylayer.com/tools/7gugu-whistle-mcp/getcurrenttimestamp.md
- `getInterceptInfo` — Read — https://policylayer.com/tools/7gugu-whistle-mcp/getinterceptinfo.md
- `getRules` — Read — https://policylayer.com/tools/7gugu-whistle-mcp/getrules.md
- `getValue` — Read — https://policylayer.com/tools/7gugu-whistle-mcp/getvalue.md
- `getValueList` — Read — https://policylayer.com/tools/7gugu-whistle-mcp/getvaluelist.md
- `getWhistleStatus` — Read — https://policylayer.com/tools/7gugu-whistle-mcp/getwhistlestatus.md
- `addRuleToGroup` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/addruletogroup.md
- `addValueToGroup` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/addvaluetogroup.md
- `createGroup` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/creategroup.md
- `createRule` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/createrule.md
- `createValue` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/createvalue.md
- `createValuesGroup` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/createvaluesgroup.md
- `disableRule` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/disablerule.md
- `enableRule` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/enablerule.md
- `removeRuleFromGroup` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/removerulefromgroup.md
- `removeValueFromGroup` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/removevaluefromgroup.md
- `renameGroup` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/renamegroup.md
- `renameRule` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/renamerule.md
- `renameValue` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/renamevalue.md
- `renameValueGroup` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/renamevaluegroup.md
- `setAllRulesState` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/setallrulesstate.md
- `toggleHttp2` — Write — https://policylayer.com/tools/7gugu-whistle-mcp/togglehttp2.md
- …and 3 more: https://policylayer.com/tools/7gugu-whistle-mcp.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=7gugu-whistle-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/7gugu-whistle-mcp
