connect_all

Connect to both IMAP and SMTP servers simultaneously

Server Mcp Mail Server mcp-mail-server
Category Execute
Risk class High
Parameters 00 required

What connect_all does on Mcp Mail Server

AI agents invoke connect_all to trigger actions in Mcp Mail Server. 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.

Why connect_all needs a policy

This tool establishes network connections to external mail servers (IMAP and SMTP), which is an external operation with side effects beyond simple data retrieval. It triggers connections to remote systems, making it Execute rather than Read. Misuse could establish unauthorized connections or enable subsequent email operations.

From the tool's definition Connect to both IMAP and SMTP servers simultaneously

Risk signalsBulk/mass operation — affects multiple targets

Questions about connect_all

What does the connect_all tool do? +

Connect to both IMAP and SMTP servers simultaneously. It is categorised as a Execute tool in the Mcp Mail Server MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.

How do I enforce a policy on connect_all? +

Register the Mcp Mail Server MCP server in PolicyLayer and add a rule for connect_all: 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 Mcp Mail Server. Nothing to install.

What risk level is connect_all? +

connect_all is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.

Can I rate-limit connect_all? +

Yes. Add a rate_limit block to the connect_all 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.

How do I block connect_all completely? +

Set action: deny in the PolicyLayer policy for connect_all. 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.

What MCP server provides connect_all? +

connect_all is provided by the Mcp Mail Server MCP server (mcp-mail-server). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.

// LOOK UP ANOTHER SERVER

Every MCP server has a record like this.

Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.

Teams ship this data inside their own products. See what a licence covers →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.