Skip to main content
Glama

Get mailbox OAuth URL

email_account_oauth_url
Read-onlyIdempotent

Build 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

NameRequiredDescriptionDefault
stateYesOpaque value echoed back on the callback. Use the user id or any correlation token.
providerYesWhich connected AI provider to use. Providers are connected in the web app.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so safe-read semantics are covered. The description adds genuinely useful behavior: the callback is handled by the web app not MCP, the mailbox will not appear in email_account_list until the user finishes, and the plan gate. However for a closed-world read-only URL builder, these additions are contextual rather than critical gaps, so a 3 is fair.

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

Conciseness5/5

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

Front-loaded with the core action, then handoff semantics, sibling preference, exclusion, and plan requirement. Every sentence supplies distinct information with no filler.

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?

No output schema exists, but the description explains that returning the URL is the whole job and that the callback occurs elsewhere. For a 2-parameter read-only builder this is complete enough to invoke correctly.

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% for both parameters, including `state` and the `provider` enum. The description adds only implicit mapping (Google/Microsoft) which the enum already states, and says nothing new about `state`. Baseline 3 is appropriate.

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+resource ("Build the Google or Microsoft consent URL for connecting a mailbox") and immediately differentiates from the sibling email_account_add_imap. An agent can identify the tool and its scope without opening the schema.

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

Usage Guidelines5/5

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

Explicitly covers when to use (Google/Microsoft preference over IMAP, no password, survives 2FA), when not to (no LinkedIn equivalent), the handoff flow (give URL to user for browser), and prerequisites (Pro or Agency plan). This is the full when/when-not/alternatives set.

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.

Resources