Skip to main content
Glama

teams_login

Sign in to Microsoft Teams using a device code for personal or work/school accounts, returning a URL and short code to complete authentication on any device.

Instructions

Sign in to Microsoft Teams with a device code (no browser automation, no app registration), for personal accounts (Teams free: Outlook/Hotmail/Live) and work/school accounts. Returns a URL and a short code for the user to enter on any device; work accounts can then add Microsoft Graph access with graph=true (and graph_admin=true for admin-approved team management).

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": {
      "account_type": "<account_type>"
    },
    "name": "teams_login"
  }
}

Input Schema

NameRequiredDescriptionDefault
aliasNoName to save the account under (default: the email address).
graphNoWork accounts: add Microsoft Graph access to an already signed-in account, with permissions users can grant themselves.
tenantNoWork accounts only: tenant domain or id (e.g. contoso.onmicrosoft.com). Needed for guest access to another organisation; a guest account is saved separately, as email#tenant.
accountNoAccount alias (see teams_accounts). Defaults to the default account.
graph_adminNoWork accounts, implies graph: also ask for the Graph permissions a tenant admin must approve (team/channel members and settings, tabs, tags, apps, channel messages, transcripts).
account_typeYes"personal" for Teams free / Microsoft account, "work" for work or school (Entra ID).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the device-code flow, the absence of browser automation/app registration, and that work accounts can escalate to Graph permissions (with admin approval implied by graph_admin). The main undisclosed behavior is whether the call blocks until sign-in completes or returns immediately for polling via teams_login_status, and any code expiry, which matters for an interactive auth tool.

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?

Two dense sentences, front-loaded with the core action and the return value, with no filler. The parenthetical clauses are compressed but readable; they slightly crowd the main point without derailing it.

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?

For a 6-parameter authentication tool with no output schema, the description covers account types, the returned URL/code, and the Graph escalation path. It is only missing the completion/verification story (how the agent learns sign-in succeeded), which is the one gap an agent would hit in practice.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents alias, account, tenant, graph, graph_admin, and account_type. The description reinforces the graph/graph_admin semantics and account-type split but adds no syntax or default details beyond what the schema provides, so the baseline of 3 applies.

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 ("Sign in to Microsoft Teams with a device code") plus explicit negative scope ("no browser automation, no app registration") and the account types covered. It also says what the tool produces (a URL and short code), so an agent knows exactly what this does without opening 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear conditions for use: personal (Teams free/Outlook/Hotmail/Live) vs work/school accounts, and when to add graph or graph_admin. It does not name the natural follow-up or alternatives such as teams_login_status for checking completion, leaving the agent to infer the flow, so it falls 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.

Deploy Server

Other Tools