xlsx_post_teams
Upload a local Excel workbook to a Microsoft Teams channel as a file attachment, with an optional accompanying message.
Instructions
Upload a local .xlsx file to a Microsoft Teams channel as a file attachment, with an optional accompanying message.
Token intake: set TEAMS_GRAPH_TOKEN in the environment (recommended — keeps the token out of conversation logs). Alternatively pass graph_token as a tool argument (legacy; token will appear in MCP history). Uses Microsoft Graph's upload-session + chatMessage flow.
USE WHEN: the user asks "post this workbook to my Teams channel" or any outbound-file-to-Teams request after producing or modifying a workbook.
DO NOT USE WHEN: posting to Slack (use xlsx_post_slack). Or when no Microsoft Graph token is available — the user needs an Entra ID app with Files.ReadWrite.All + ChannelMessage.Send scopes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes | ||
| file_b64 | No | ||
| filename | No | ||
| graph_token | Yes | ||
| message | No | ||
| team_id | Yes | ||
| workbook_handle | No |