Skip to main content
Glama

Connect Google Workspace mailboxes

argorant_connect_google_workspace

Use it when the user says "connect our Google Workspace mailboxes". It connects them as sending mailboxes without passwords and without signing in to each one, in two steps. Called without emails, it returns the client ID and the permissions the Workspace admin pastes in Google Admin > Security > API controls > Domain-wide delegation; once that is done, the same call lists every mailbox and alias. Then call it again with emails, or an empty list for all of them, to connect those addresses. Microsoft 365 and other mailboxes connect on the Mailboxes page or through Argorant's own mailbox form. Nothing is sent. Afterwards argorant_list_inboxes shows them and argorant_set_campaign_senders adds them to a campaign. More in the docs at https://docs.argorant.com/docs/agents/tools#mailboxes

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "admin_email": "<admin_email>"
    },
    "name": "argorant_connect_google_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailsNoThe addresses to connect, from the list the first call returned. An empty list connects all of them. Leave it out on the first call.
admin_emailYesThe Google Workspace admin's address.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses the auth prerequisite (Workspace admin pastes the client ID and scopes into Domain-wide delegation), the two-call protocol, that no passwords or per-mailbox sign-in are needed, and that nothing is sent. That is exactly the behavioral context an agent needs before triggering an open-world, non-read-only operation.

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?

Front-loads the trigger and the two-step model, then alternatives and follow-ups, with no filler. It is on the long side and the quoted trigger phrase is slightly brittle, but every sentence carries usable information.

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

Completeness4/5

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

For a two-phase, permission-dependent connection tool it covers the flow, the prerequisite, and the follow-up tools (list_inboxes, set_campaign_senders), and an output schema covers return values. It stops short of describing failure modes, such as what happens if delegation has not been granted yet.

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: it explains that 'emails' should be omitted on the first call and that the values come from the list the first call returned. It adds little about 'admin_email' beyond the schema, which caps this at 4.

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?

States a specific verb and resource — connecting Google Workspace mailboxes as sending mailboxes — and adds the key differentiator that it works without passwords or per-mailbox sign-in. It also routes other providers (Microsoft 365, other mailboxes) away, so an agent can tell what this tool is and is not.

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?

Gives an explicit trigger ('when the user says connect our Google Workspace mailboxes'), the two-step sequence (first call to get client ID and permissions, second call with emails), and names where other provider mailboxes are handled instead. The weakness is that 'Argorant's own mailbox form' does not name a concrete sibling, so the hand-off for non-Google mailboxes is vaguer than the Google path.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.