Skip to main content
Glama
xlsx-for-ai

xlsx-for-ai

by senoff

xlsx_post_slack

Destructive

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

NameRequiredDescriptionDefault
channelYesSlack channel ID (C…/G…) the file should land in. Channel names like #general are NOT accepted — resolve to a channel ID first.
messageNoOptional: message to post alongside the file (Slack's initial_comment).
filenameNoOptional: filename Slack will display. Defaults to the basename of file_path.
file_pathYesAbsolute path to the .xlsx file to post.
slack_tokenNoSlack 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changedv4.3.1
    • addedInput schema / properties / channel / description
      Added value: +"Slack channel ID (C…/G…) the file should land in. Channel names like #general are NOT accepted — resolve to a channel ID first."
    • removedInput schema / properties / channel / maxLength
      Removed value: -128
    • removedInput schema / properties / channel / minLength
      Removed value: -1
    • removedInput schema / properties / file_b64
      Removed value: -{
      -  "type": "string"
      -}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Absolute path to the .xlsx file to post.",
      +  "type": "string"
      +}
    • addedInput schema / properties / filename / description
      Added value: +"Optional: filename Slack will display. Defaults to the basename of file_path."
    • removedInput schema / properties / filename / maxLength
      Removed value: -128
    • addedInput schema / properties / message / description
      Added value: +"Optional: message to post alongside the file (Slack's initial_comment)."
    • removedInput schema / properties / message / maxLength
      Removed value: -4000
    • addedInput schema / properties / slack_token / description
      Added value: +"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."
    • removedInput schema / properties / slack_token / maxLength
      Removed value: -256
    • removedInput schema / properties / slack_token / minLength
      Removed value: -10
    • removedInput schema / properties / workbook_handle
      Removed value: -{
      -  "maxLength": 128,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "channel",
      -  "slack_token"
      -]New value: +[
      +  "file_path",
      +  "channel"
      +]
  2. First observedv3.2.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true and idempotentHint=false, so the agent knows this is a non-idempotent external write. The description adds only the "file attachment + optional message" framing; it does not mention that repeat calls create duplicate posts, required Slack bot scopes, or failure behavior for invalid channels. No contradiction with annotations.

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

Conciseness5/5

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

One front-loaded sentence with zero filler: the trigger, the action, the target, and the optional message are all packed in without redundancy.

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 five-parameter, no-output-schema tool whose parameters are fully documented, the description covers purpose and scope adequately, and annotations carry the safety profile. Minor gaps remain around duplicate-post behavior and authentication expectations, which the schema only partially covers.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%: channel ID format, message as initial_comment, filename default, absolute file_path, and the token/env-var tradeoff are all documented in the schema. The description contributes no additional parameter meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description pairs a specific verb (post) with a specific resource (a spreadsheet/.xlsx file) and destination (Slack channel, as a file attachment). The Slack framing implicitly separates it from the xlsx_post_teams sibling, though it never names an alternative explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use this when you need to post a spreadsheet to a Slack channel" gives a clear triggering scenario, so usage is more than implied. However, no when-not conditions or named alternatives (e.g. xlsx_post_teams) are provided, and nothing tells the agent what to do instead if the channel/ID requirement cannot be met.

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