Skip to main content
Glama

Start signing in to Microsoft 365

auth_begin_login
Read-onlyIdempotent

Starts OAuth 2.0 browser sign-in to Microsoft 365, returns immediately, and opens the system browser for the user. Call it when a tool reports no session or missing consent, then check status.

Instructions

Starts OAuth 2.0 browser sign-in to Microsoft 365 using authorization code + PKCE. The system browser opens on this machine and the tool returns immediately while the user signs in there; call auth_login_status afterward to see whether they finished. Calling it again while a sign-in is pending reuses the same attempt instead of opening another browser window. Use it when a tool reports that there is no session, and again with scopes when a tool reports missing consent: sign-in is incremental, so a bare call asks only for the minimal set and each repeat consents to just what was added. Pass mode: "full" to consent up front to the rest instead, minus what an ordinary user cannot grant. Never ask the user to paste credentials or an authorization code into the conversation. No token is ever returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoHow much to consent to. Omit it (or pass "bare") for the minimal sign-in set plus `scopes`. Pass "full" to consent up front to everything this configuration may need except what an ordinary user cannot grant on their own: admin-consent and tenant-policy-blocked scopes are left out rather than failing the whole prompt.
scopesNoDelegated scopes to consent to on top of the minimal sign-in set, e.g. ["Mail.Read"]. Omit it for the minimal set alone. When a tool fails for missing consent, pass the scopes its error names: Entra prompts only for what was added.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/idempotentHint, but the description adds substantial behavior beyond them: the browser opens locally, the tool returns immediately, repeat calls reuse a pending attempt rather than spawning another window, consent is incremental, and no token is ever returned. It even adds a safety directive (never ask the user to paste credentials or an authorization code).

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 mechanism before routing guidance, and most sentences carry distinct information. It is on the long side, with the incremental-consent point restated in both the description and the `scopes` guidance, but no sentence is 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, yet the description covers the async result path by pointing to auth_login_status, explicitly states no token is returned, and explains the consent scope semantics for both parameters. An agent has everything needed to invoke it correctly.

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, but the description adds semantic framing beyond the schema: a bare call asks only for the minimal set, each repeat consents to just what was added, and `full` avoids consenting to admin-only/tenant-blocked scopes. This goes slightly beyond the schema text even though the two overlap on the `scopes` guidance.

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?

Names a specific verb and resource (starts OAuth 2.0 browser sign-in to Microsoft 365 using authorization code + PKCE) and distinguishes itself from the sibling auth_login_status by explaining that it returns immediately while the status tool reports completion. An agent can tell it apart from session_status and graph_request without opening schemas.

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 states when to call it (a tool reports no session), when to call again with `scopes` (a tool reports missing consent), the incremental nature of consent, and what `mode: "full"` does instead. It also names the follow-up tool auth_login_status and the alternative of a bare call for minimal consent. Nothing is left to inference.

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