xlsx_post_slack
Post an Excel spreadsheet to a Slack channel by channel ID as a file attachment, with an optional accompanying message and display filename.
Instructions
Use this when you need to post a spreadsheet to a Slack 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>",
"channel": "<channel>"
},
"name": "xlsx_post_slack"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | Slack channel ID (C…/G…) the file should land in. Channel names like #general are NOT accepted — resolve to a channel ID first. | |
| message | No | Optional: message to post alongside the file (Slack's initial_comment). | |
| filename | No | Optional: filename Slack will display. Defaults to the basename of file_path. | |
| file_path | Yes | Absolute path to the .xlsx file to post. | |
| slack_token | No | Slack bot token (xoxb-…). Optional when SLACK_BOT_TOKEN env var is set. Passing the token here exposes it in MCP conversation logs — prefer the env var. |