Disconnect Microsoft 365 Account
disconnect_m365_accountDisconnects ONE Microsoft 365 account and removes its stored sign-in. Pass account (its email, id or display name); with only one account connected it can be omitted, with several it must be given. If it was the default account, the oldest remaining one becomes the default and the answer says which. Reconnecting requires the Microsoft sign-in flow again.
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": "disconnect_m365_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | The account to disconnect: its email (upn), id, or display name. Required when more than one account is connected. | |
| confirm | No | Ignored; kept for older clients. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | No | removes_credential: the stored sign-in is removed. turns_off: the account stops being read in Local MCP and stays signed in to its app. | |
| status | Yes | disconnected or not_connected. | |
| account | No | ||
| message | Yes | ||
| account_id | No | ||
| remaining_accounts | No | Other accounts of this service that stay connected. |