Skip to main content
Glama

Connect a mailbox

connect_gmail

Connect an email inbox to send from Gmail, Google Workspace, Outlook, Microsoft 365, Zoho, Fastmail, or any IMAP/SMTP provider; get a sign-in link or app-password steps to authorize it.

Instructions

Start connecting an inbox to send from: Gmail/Google Workspace, Outlook/Microsoft 365, Zoho, Fastmail or any IMAP/SMTP provider. With provider "outlook" it returns a Microsoft sign-in link for the user to open and approve. For the others it returns a Google consent link where the server offers one, or else a link (or CLI command) and the steps for the user to connect the inbox with an app password. The password goes into that page or the CLI, not into chat. The inbox shows among the workspace's mailboxes once connected.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "connect_gmail"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoAccount to pre-select on Microsoft's or Google's sign-in page
providerNooutlook for Outlook / Microsoft 365; gmail (default) or other for the rest

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false), the description discloses the actual flow: for 'outlook' it returns a Microsoft sign-in link, otherwise a Google consent link or an app-password link/CLI command plus steps. It also states the security-relevant constraint that the password is entered on that page or CLI and never into chat, and that the inbox appears among the workspace's mailboxes once connected — genuine behavioral context an agent could not infer from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and provider coverage are front-loaded in the first sentence, with return-behavior branching and the credential-handling warning following in logical order. The middle sentence is long and clause-heavy, but no sentence is filler, so it stays close to optimal for the amount of branching it must convey.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description carries the burden of explaining return values, and it does so per provider branch (sign-in link, consent link, link/CLI plus steps). With only two optional parameters and a default documented, an agent has everything needed to call it correctly and set user expectations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema by tying the 'provider' enum values to distinct downstream behaviors ('With provider "outlook" it returns a Microsoft sign-in link', others get a consent link or CLI steps) and clarifying that 'email' pre-selects the account on the sign-in page. This is useful routing semantics rather than a restatement of field types.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Start connecting an inbox to send from', and enumerates the supported providers (Gmail/Google Workspace, Outlook/Microsoft 365, Zoho, Fastmail, any IMAP/SMTP). This clearly separates it from siblings like list_mailboxes or update_mailbox without naming them, since 'start connecting' is plainly an initiation step rather than a listing or mutation of an existing mailbox.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives clear context for when to call it (a user needs to connect a sending inbox) and branches the expected outcome by provider, which effectively tells an agent what to expect for each input. It stops short of explicit exclusions or naming alternatives such as update_mailbox for an already-connected inbox, so it is clear but not fully routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.