xlsx_post_teams
Post an .xlsx spreadsheet to a Microsoft Teams channel as a file attachment, with an optional message.
Instructions
Use this when you need to post a spreadsheet to a Microsoft Teams channel as a file attachment, with an optional accompanying message.
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": {
"file_path": "<file_path>",
"team_id": "<team_id>",
"channel_id": "<channel_id>"
},
"name": "xlsx_post_teams"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Optional: message to post alongside the file. Plain text; will be HTML-escaped server-side. | |
| team_id | Yes | Microsoft Teams team ID (GUID). Find via Graph: GET /me/joinedTeams. | |
| filename | No | Optional: filename Teams will display. Defaults to the basename of file_path. | |
| file_path | Yes | Absolute path to the .xlsx file to post. | |
| channel_id | Yes | Microsoft Teams channel ID. Find via Graph: GET /teams/{team-id}/channels. | |
| graph_token | No | Microsoft Graph access token (JWT). Optional when TEAMS_GRAPH_TOKEN env var is set. Passing the token here exposes it in MCP conversation logs — prefer the env var. Must have file-upload + channel-message-send scopes. |