Get mailbox OAuth URL
email_account_oauth_urlBuild the Google or Microsoft consent URL for connecting a mailbox. Hand the URL to the user to open in a browser — the OAuth callback is completed by the web app, not by MCP, so returning the URL is the whole job and the mailbox will not appear in email_account_list until they finish. Preferred over email_account_add_imap for Google and Microsoft: no password is stored and it survives 2FA. There is no equivalent for LinkedIn accounts. Requires a Pro or Agency plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Opaque value echoed back on the callback. Use the user id or any correlation token. | |
| provider | Yes | Which connected AI provider to use. Providers are connected in the web app. |