Skip to main content
Glama
Xallor Email MCP

Xallor Email MCP

Official
by xallor-ai

complete_add_account

Finalize a pending email account addition by polling provider status; for Outlook after device-code entry, or for Gmail submit the full redirected URL with code and state to persist the account.

Instructions

Poll/finalize a pending add_account flow. For Outlook, poll after the user completes the device-code step. For Gmail, pass the full final redirected URL supplied by the user as authorizationResponse, with provider 'gmail' and the original handle; preserve all query parameters, including code and state. Polling without the URL only works if the server received the browser callback automatically. Returns ready when the account is persisted.

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>",
      "handle": "<handle>"
    },
    "name": "complete_add_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoFor OAuth providers such as Gmail: raw authorization code if the client extracted it from the redirect URL.
stateNoFor OAuth providers such as Gmail: OAuth state returned with a raw authorization code.
handleYes
providerYes
authorizationResponseNoFor Gmail: the full final URL the user copies from the browser address bar after consent, including code and state, even if the callback page cannot load.

Output Schema

NameRequiredDescriptionDefault
errorNo
statusYes
accountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it reveals this is a repeated-poll operation whose terminal success state is "ready" when the account is persisted, and it flags the unreliable fallback path. It stops short of describing failure or expiry behavior for a pending flow, or whether repeated polling has side effects, which matters for a finalization tool with zero annotation coverage.

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 main purpose is front-loaded in the first sentence, and nearly every clause carries operational information rather than restating the name. The Gmail sentence is overloaded with comma-chained clauses that would read faster as a short ordered list, but nothing is filler.

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

Completeness3/5

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

For a 5-parameter tool with an output schema and no annotations, the description covers Outlook and Gmail paths well and need not explain return values. However, 'imap' is a valid enum value that the description never mentions, and it does not say what an agent should do if no pending flow exists or the flow has expired — a meaningful omission for a finalization step.

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 60% and handle/provider have no schema descriptions at all, so the description compensates meaningfully — it pins provider to 'gmail' for the URL path, identifies handle as the original one, and stresses preserving all query parameters including code and state even if the callback page cannot load. That last instruction is a real constraint absent from the schema, though the imap provider value is never addressed in either place.

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?

"Poll/finalize a pending add_account flow" gives a specific verb pair and names the resource, and ties it directly to the add_account sibling as the second half of that flow. An agent can distinguish this from add_account and get_account_settings without inspecting 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?

It gives explicit per-provider branching: poll after the device-code step for Outlook, pass the full redirected URL with provider 'gmail' and the original handle for Gmail. It also states the when-not condition — polling without the URL only works if the server already received the browser callback — which is exactly the kind of routing detail an agent needs before choosing between the two modes.

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