Skip to main content
Glama

add_workspace_mailbox

Destructive

Connect a Gmail mailbox of a Google Workspace domain through domain-wide delegation - no password and no sign-in by the person. Requires that the customer's Workspace admin authorised our service account (docu/google-workspace-postfaecher.md) and that the domain is enabled for this tenant (set_integration_credentials provider google_workspace, credentials.domains). Verifies by reading the person's Gmail profile before saving. An existing mailbox with the same address (password or OAuth) is switched over instead of duplicated. owner_user_id: whose mailbox it is (default: the caller); setting up someone else's needs the admin role.

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": {
      "email": "<email>"
    },
    "name": "add_workspace_mailbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoName of the workspace mailbox
emailYesEmail address
servicesNoAlso connect these services of the same person through the delegation (calendar, Meet transcripts, Drive with write access). Result per service; one may fail without the others.
from_nameNoSender display name
owner_user_idNoUser id of the person the mailbox belongs to. Default: the caller.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / email / description
      Added value: +"Email address"
    • addedInput schema / properties / from_name / description
      Added value: +"Sender display name"
    • addedInput schema / properties / name / description
      Added value: +"Name of the workspace mailbox"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, but the description adds real context beyond them: no password or user sign-in, a Gmail profile read as pre-save verification, and that an existing same-address mailbox is converted rather than duplicated (explaining the destructive semantics). It omits what happens to the previous credentials during conversion, so it stays below 5.

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-loaded with the action and mechanism, then prerequisites, then the dedupe/role caveats. Dense but each sentence carries information; the inline doc path and parenthetical credential path add mild noise.

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?

No output schema, so the description must stand in for it, and it explains the verification step and per-call outcome implication for the existing-mailbox case. It does not describe the partial-failure behavior of the services array (left to the schema), so it is strong but not exhaustive.

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

Parameters3/5

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

Schema coverage is 100%, so every parameter is already documented. The description only adds operational meaning for owner_user_id (default is the caller; setting another person's mailbox requires the admin role), while name, email, from_name and services add nothing beyond the schema.

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 ('Connect a Gmail mailbox of a Google Workspace domain') plus the mechanism ('domain-wide delegation'), which immediately separates it from a password-based add_mailbox sibling. An agent knows exactly what object is created and how it differs from OAuth/password mailboxes.

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 two hard prerequisites (Workspace admin authorised the service account; the domain must be enabled via set_integration_credentials provider google_workspace, credentials.domains) and names the prerequisite tool explicitly. It does not name an alternative tool to use when those preconditions fail, which keeps it short of a 5.

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.