Skip to main content
Glama

read_slack_file

Read-only

Read a file posted in Slack by its file id (e.g. 'F0ABC12345') or its Slack permalink. Text files and JSON come back as text; everything else as base64 in base64 with its mimetype. Hard-capped at 5MB — a larger file errors rather than returning something truncated. Slack files only — for Google Drive use read_file_content, for an email attachment download_attachment. Pass the workspace the file was posted in as account; without it every connected workspace is checked. Needs files:read (reconnect hint on a workspace connected before 2026-08-28).

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_id": "<file_id>"
    },
    "name": "read_slack_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountNoWorkspace label (see list_accounts) the file was posted in. Recommended when several workspaces are connected; omitted, each workspace is checked for the file.
file_idYesSlack file id (e.g. 'F0ABC12345') from a message's files[].id or list_slack_files. The file's Slack permalink or download URL is also accepted whole.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / account / description
      Previous value: -"Workspace label. Required when several workspaces are connected."New value: +"Workspace label (see list_accounts) the file was posted in. Recommended when several workspaces are connected; omitted, each workspace is checked for the file."
    • changedInput schema / properties / file_id / description
      Previous value: -"Slack file id (e.g. 'F0ABC12345'), from a message that carried a file."New value: +"Slack file id (e.g. 'F0ABC12345') from a message's files[].id or list_slack_files. The file's Slack permalink or download URL is also accepted whole."
  2. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered; the description still adds real behavior: the 5MB hard cap fails loudly instead of truncating, and the return shape differs by type (text for plain/JSON, base64 + mimetype otherwise). It also discloses the permission requirement and a reconnect edge case for workspaces connected before 2026-08-28.

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?

Sentences are ordered by importance: identification method, return shape, size limit, sibling routing, then optional parameters and auth. No filler; every clause carries a distinct fact an agent needs.

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

Completeness5/5

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

No output schema exists, yet the description covers the two possible return shapes and mimetype, the failure mode at 5MB, the multi-workspace resolution behavior, and the required scope. That is everything needed to call this correctly and interpret the result.

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

Parameters4/5

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

Schema coverage is 100%, so `file_id` and `account` are already documented, and the description mostly restates them. It does add operational meaning to `account` by framing the fallback as a fan-out over 'every connected workspace', which signals cost/ambiguity rather than just describing the default.

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

Purpose5/5

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

Names a specific verb+resource ('Read a file posted in Slack') and states how the resource is identified (file id or Slack permalink). It explicitly carves out non-Slack cases by naming the siblings that handle them (read_file_content for Google Drive, download_attachment for email attachments), so an agent can distinguish it without opening schemas.

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

Usage Guidelines5/5

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

Gives explicit routing rules to alternatives for the two adjacent domains (Drive, email attachments) and advises passing the workspace 'the file was posted in' via `account`, with the consequence of omitting it. It also states the authentication precondition (files:read) plus a reconnect condition for older workspaces.

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.

Resources