Skip to main content
Glama

Get an OAuth connect URL for a mailbox

get_email_connect_url
Read-only

Get the consent URL to connect a Google/Microsoft mailbox to a profile. Returns a link for the user to open; consent cannot be completed here, and nothing is stored until the user approves it in the browser. Use connect_imap_account for non-OAuth mailboxes. Fails with 400 for an unknown provider. Returns { url }.

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": {
      "provider": "<provider>",
      "profileId": "<profileId>"
    },
    "name": "get_email_connect_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerYesMail provider: google or microsoft (case-insensitive).
profileIdYesThe profile the mailbox will be attached to (UUID from list_profiles).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds real context beyond them: nothing is stored until the user approves in the browser, the returned link must be opened by the user, and an unknown provider produces a 400. That is a complete picture of side effects and failure behavior for a two-parameter tool.

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?

Four short sentences, front-loaded with the action, then the constraint, then the alternative, then the return shape. Every sentence carries distinct information with no repetition.

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 supplies the return shape ('Returns { url }'), the async consent requirement, the storage semantics, and the error case. Nothing an agent needs to call this correctly is missing.

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 both parameters are already documented; the description adds the failure mode tied to provider ('Fails with 400 for an unknown provider') and identifies which providers are valid, which goes slightly beyond the schema's own enumeration.

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: 'Get the consent URL to connect a Google/Microsoft mailbox to a profile.' It also implicitly scopes itself against connect_imap_account, so the agent can tell it apart from the non-OAuth sibling without opening either 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 says when to use it (OAuth Google/Microsoft mailbox connection) and names the alternative for the other case: 'Use connect_imap_account for non-OAuth mailboxes.' It also warns the consent step cannot be completed here, which prevents a misuse pattern.

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