Skip to main content
Glama
@mcp-z/mcp-outlook
by mcp-z

account-switch

Switch to a linked Outlook account without OAuth, or add a new account by starting the browser OAuth flow when no linked email is available.

Instructions

Use mcp-outlook account (smart mode). If email/alias provided and already linked, switches to it without triggering OAuth. If not linked or no email provided, triggers OAuth browser flow to add account. Returns account email, whether it was newly added, and total account count.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "account-switch"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasNoOptional alias for easy identification
emailNoEmail address to link (if already linked, switches without OAuth)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.3

TDQS

A3.8/5.0
Behavior3/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 disclose the important side effect: launching an OAuth browser flow when the account isn't linked. That is genuinely useful behavioral context. It says nothing about what happens to the existing session/active account after a switch or whether the switch persists across calls, leaving meaningful gaps.

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?

Three sentences, each adding information: the action, the two branches, and the return shape. It is front-loaded with the behavior, though the leading "(smart mode)" fragment is noise that doesn't earn its place.

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?

An output schema exists, so explaining return values is optional, yet the description still summarizes them. Combined with both execution branches and the OAuth side effect, this is nearly complete for a two-optional-parameter tool; only post-switch state and persistence are unaddressed.

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; the description earns above that by explaining the conditional semantics of the email parameter — supplying a linked email switches silently while an unlinked or omitted email falls through to OAuth. The alias parameter's purpose beyond the schema's "for easy identification" is not elaborated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action: switch to an account, or add one via OAuth if it isn't linked. That is clearly distinct from siblings such as account-list and account-remove. The opening fragment "Use mcp-outlook account (smart mode)" is vague and doesn't help an agent, but the following sentences carry the meaning.

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?

It gives explicit branching guidance: if an email/alias is provided and already linked, the tool switches without OAuth; if the email is not linked or no email is provided, it triggers the OAuth browser flow. It does not name sibling alternatives (e.g., account-list to discover linked accounts first), so it stops 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.