Skip to main content
Glama

auth

Manage Microsoft Graph API authentication: check status, start OAuth device-code or browser flow, complete device-code login, and view diagnostic info.

Instructions

Manage authentication with the Microsoft Graph API. action=status (default) returns the current auth state and auto-refreshes the access token if it's expired but the refresh token is still valid (~90-day window) — call this first to check before other tools. action=authenticate starts the OAuth flow: with method: "device-code" (default, works headlessly) it returns a code + URL for the user to visit; with method: "browser" it opens the local auth server on :3333 (run npm run auth-server first). Pass force: true to re-authenticate over an existing valid session. action=device-code-complete finishes device-code auth after the user enters the code in their browser — call this once authentication shows as successful in the browser. action=about returns server version, configured audience, scope list, and other diagnostic info. Tokens persist to ~/.outlook-assistant-tokens.json and survive server restarts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce re-authentication even if already authenticated (action=authenticate only)
actionNoAction to perform (default: status)
methodNoAuth method for action=authenticate. device-code (default): no auth server needed, works remotely. browser: traditional OAuth redirect via port 3333.
Behavior5/5

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

The description adds significant behavioral context beyond the minimal annotations: auto-refresh of expired access tokens within a ~90-day window, token persistence to a specific file across restarts, the need to run a local server for browser auth, and the effect of `force: true` on an existing session. There is no contradiction with the annotations (readOnlyHint=false, destructiveHint=false).

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?

The description is long but every sentence earns its place, covering all four actions, defaults, prerequisites, and persistence in a compact, logically ordered paragraph. It uses semicolons and clauses to group related information, making it dense but not wasteful.

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?

For a multi-action auth tool with no output schema, the description is remarkably complete. It describes what each action returns or does, prerequisites (npm run auth-server), failure/success flow (device-code-complete after browser entry), and persistence behavior. The agent has enough context to use the tool correctly without external documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description enhances the schema by stating defaults (`action=status`, `method=device-code`), explaining the behavior tied to `force`, and describing the distinct outcomes of each `action` value. It also clarifies the meaning of `method` options (headless vs. local server), adding value beyond raw parameter names.

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?

The description clearly states the tool's purpose: 'Manage authentication with the Microsoft Graph API' and enumerates the four specific actions (status, authenticate, device-code-complete, about). It is easily distinguishable from the sibling email/calendar tools, and the action list gives a precise map of what the tool accomplishes.

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 tells the agent when to use this tool: 'call this first to check before other tools.' It also gives conditional guidance for each action—e.g., use device-code for headless environments, run `npm run auth-server` before using the browser method, and call device-code-complete after the user enters the code. This is strong, actionable usage context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/littlebearapps/outlook-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server