Skip to main content

Description

Tests TCP/TLS connection, authenticates with the IMAP server, and retrieves the server’s capability list. Use this tool to diagnose connection issues or verify account configuration.
This tool executes a full connection test including NOOP command to verify bidirectional communication.

Input Parameters

body.account_id
string
default:"default"
Account identifier matching an environment variable configuration.Pattern: ^[A-Za-z0-9_-]{1,64}$

Response

summary
string
required
Human-readable summary of the verification outcome.Example: "Account verification succeeded"
data
object
required
meta
object
required
Execution metadata.

Examples

{
  "method": "tools/call",
  "params": {
    "name": "imap_verify_account",
    "arguments": {
      "account_id": "default"
    }
  }
}

Error Cases

Invalid Account ID

{
  "error": {
    "code": "invalid_input",
    "message": "account_id must match pattern ^[A-Za-z0-9_-]{1,64}$",
    "details": {}
  },
  "meta": {
    "now_utc": "2024-03-15T10:30:45.123Z",
    "duration_ms": 1
  }
}

Account Not Found

{
  "error": {
    "code": "not_found",
    "message": "Account 'unknown' not found in configuration",
    "details": {}
  },
  "meta": {
    "now_utc": "2024-03-15T10:30:45.123Z",
    "duration_ms": 2
  }
}

Timeout Configuration

Connection timeouts are configurable via environment variables:
  • MAIL_IMAP_CONNECT_TIMEOUT_MS (default: 30000) - TCP/TLS connection timeout
  • MAIL_IMAP_GREETING_TIMEOUT_MS (default: 15000) - Server greeting timeout
  • MAIL_IMAP_SOCKET_TIMEOUT_MS (default: 300000) - Socket read/write timeout

Build docs developers (and LLMs) love