Skip to main content
Glama

slack_upload_file

Destructive

Upload a file as the connected Slack user and optionally share it in a channel. Supply filename and UTF-8 content or content_base64. Supply a concise reason and context for the user's activity record. These explanations do not grant permission. Listed tools may require an account connection or permission change in Leash; follow any access guidance returned by the tool and never bypass a denial.

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": {
      "reason": "<reason>",
      "context": "<context>",
      "input": "<input>"
    },
    "name": "slack_upload_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYes
reasonYesWhy this access is necessary to fulfill the user's request
contextYesThe user request or task that prompted this action; omit unnecessary private details

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds genuinely non-structured context: the action runs as the connected Slack user, content is UTF-8 or base64 encoded, and the reason/context fields are explanatory only and 'do not grant permission', with access possibly requiring a Leash connection or permission change. That auth/permission flow is exactly the kind of behavior worth crediting. It does not explain why the tool is flagged destructive (e.g. whether an existing file can be replaced), which is the remaining gap.

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

Conciseness4/5

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

The core action is front-loaded in the opening sentence, and the encoding instruction follows immediately. The permission/denial sentences are longer boilerplate but still relevant to a tool that can be blocked by access policy, so little is pure waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a nested-input mutation tool with no output schema, the description covers the essential call path and the permission model but leaves out what success returns (created file id, permalink), whether the channel share posts a message, and practical limits. It is adequate to attempt the call but thin on consequences.

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?

At 67% schema description coverage the baseline is 3, and the description earns that by clarifying the content vs content_base64 distinction (UTF-8 text versus base64 payload) and the role of reason/context in the user's activity record. It omits any mention of title or query inside the nested input, so it does not fully compensate for the undocumented parameters.

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 first sentence names a specific verb and resource ('Upload a file') plus the acting identity ('as the connected Slack user') and an optional scope ('share it in a channel'), which separates it from slack_read_file and slack_delete_file without needing their schemas. It stops short of naming or explicitly contrasting any sibling, so it is clear but not differentiating by reference.

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?

Usage is only implied: upload content as the user, and add channel_id if the file should be shared. There is no statement of when to prefer this over slack_read_file, slack_api_call, or the other upload tools, and no prerequisites or exclusions. The permission note tells the agent not to bypass denials but is not selection guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.