Skip to main content
Glama

List Microsoft 365 Accounts

list_m365_accounts
Read-only

List the Microsoft 365 accounts connected on this computer: email (upn), id, display name, which one is the default, its state (connected, reauth_required, unavailable) and the permissions it has. Use an account's email or id as the account parameter of the Microsoft 365 and Teams tools. Add an account with connect_m365_account. Each entry's permissions carries only the permissions this service has (read, send, write; a key that is missing does not apply). true: allowed in the account's boxes (LMCP's icon → My apps → open the app's row → the account's Read · Send · Write) and the item accepts it. false: turned off there, or the item is read-only (read_only: true).

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": "list_m365_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
countYes
accountsYes
default_accountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / accounts / items / properties / reconnect_for / description
      Previous value: -"Present when the account works but must be connected again (connect_m365_account) before it can do this: \"drafts\" = m365_create_draft."New value: +"Present when the account works but must be connected again (connect_m365_account) before it can do this: \"drafts\" = m365_create_draft (connect again); todo, files, sharepoint, contacts = connect again with that scopes_for value."
    • changedOutput schema / properties / accounts / items / properties / reconnect_for / items / enum
      Previous value: -[
      -  "drafts"
      -]New value: +[
      +  "drafts",
      +  "todo",
      +  "files",
      +  "sharepoint",
      +  "contacts"
      +]
  2. Changed3 schema fields changed
    • addedOutput schema / properties / accounts / items / properties / permissions
      Added value: +{
      +  "properties": {
      +    "read": {
      +      "type": "boolean"
      +    },
      +    "send": {
      +      "type": "boolean"
      +    },
      +    "write": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / accounts / items / properties / read_only
      Added value: +{
      +  "description": "true: the system reports this item as not modifiable. Absent when it cannot tell.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / accounts / items / properties / reconnect_for
      Added value: +{
      +  "description": "Present when the account works but must be connected again (connect_m365_account) before it can do this: \"drafts\" = m365_create_draft.",
      +  "items": {
      +    "enum": [
      +      "drafts"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  3. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so safety is covered; the description usefully adds that state can be reauth_required and that permissions are per-service. However, the trailing explanation of permissions true/false (including a UI navigation path and item-level `read_only`) is muddled and reads like guidance for a permissions-checking tool rather than this lister, leaving the actual meaning of an entry's `permissions` ambiguous.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first two sentences are well front-loaded and earn their place. The final two sentences, with the parenthetical UI path ('LMCP's icon → My apps → open the app's row → the account's Read · Send · Write') and the true/false permissions breakdown, are bloated and harder to parse than the operation they describe.

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 zero-parameter read-only lister with an output schema, the description already goes beyond what's needed by naming the returned fields and the follow-up tools. The only incompleteness is the under-specified permissions semantics, which the description raises but does not cleanly explain.

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?

The tool takes no parameters, so the baseline is 4. The description correctly speaks in terms of returned fields rather than inputs and never implies optional filters that don't exist.

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?

Opens with a specific verb and resource ('List the Microsoft 365 accounts connected on this computer') and enumerates the returned fields (upn, id, display name, default, state, permissions), so the agent knows exactly what comes back. The state vocabulary (connected, reauth_required, unavailable) further distinguishes it from generic account listers.

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 a concrete downstream use ('Use an account's email or id as the `account` parameter of the Microsoft 365 and Teams tools') and points to connect_m365_account for adding accounts. It does not differentiate from adjacent listers such as list_email_accounts or thunderbird_list_accounts, so the agent must infer which account type it needs.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources