switch_connection
Switch to a different connection
This record as markdown: /tools/adamhancock-bullmq-mcp/switch-connection.md
What switch_connection does on BullMQ MCP Server
AI agents call switch_connection as a supporting operation in BullMQ MCP Server workflows.
Why switch_connection is rated Low
This tool changes the active Redis connection context within the MCP session. It doesn't read, write, execute, delete data, or move money — it only changes which connection is currently active. The closest category is 'Other' since it's a session/context management operation. Minor misuse risk: switching to a wrong connection could misdirect subsequent operations, but the tool itself causes no direct harm.
From the tool's definition Switch to a different connection
Attacks that exploit this kind of access
The rule that runs switch_connection safely
PolicyLayer is an MCP gateway: it sits between your AI agents and BullMQ MCP Server, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For switch_connection, this is the rule to start with:
switch_connection gets a rate cap, and everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect BullMQ MCP Server, apply this rule, and every switch_connection call is checked against it from then on.
Questions about switch_connection
Switch to a different connection. It is categorised as a Other tool in the BullMQ MCP Server MCP Server, which means it performs auxiliary operations.
Register the BullMQ MCP Server MCP server in PolicyLayer and add a rule for switch_connection: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches BullMQ MCP Server. Nothing to install.
switch_connection is a Other tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the switch_connection rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for switch_connection. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
switch_connection is provided by the BullMQ MCP Server MCP server (adamhancock/bullmq-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on BullMQ MCP Server, and thousands of servers like it.
This server
Across the catalogue