Skip to main content
Glama
Cursor Slack Chat

Cursor Slack Chat

by CanonSystems

slack_get_file

Retrieve Slack file metadata and optionally base64 image content by file ID, so you can inspect files referenced in channel messages.

Instructions

Get file metadata and optionally image content from Slack. Use file_id from message.files[].id (e.g. from channel history). Requires files:read scope. Set include_image_content=true to get base64 image data.

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": "slack_get_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idYesSlack file ID (from message.files[].id)
include_image_contentNoIf true and file is an image, include content_base64 and content_data_url

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does disclose two non-obvious traits: the required 'files:read' OAuth scope and that base64 content only appears when include_image_content=true and the file is an image. It does not describe failure behavior for non-image files or the shape of the metadata returned, leaving a modest gap.

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?

Four short sentences, front-loaded with the purpose and followed by provenance, auth requirement, and the optional flag in descending order of importance. There is no filler and nothing is buried.

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 simple two-parameter read tool with no output schema and no annotations, the description covers purpose, identifier sourcing, permission prerequisites, and the optional binary payload behavior. The main omission is any hint about the metadata fields returned or size limits on returned image content.

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%, so both parameters are already documented in the schema, including what content_base64/content_data_url mean. The description restates the file_id provenance and the include_image_content effect rather than adding syntax, format, or size-limit information, so the baseline of 3 applies.

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?

States a specific verb and resource ('Get file metadata and optionally image content from Slack') and names the optional capability inline, so the agent knows exactly what it retrieves. No sibling tool in the list deals with files, so the distinction is inherent and reinforced by the 'file metadata' framing.

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

Usage Guidelines4/5

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

Gives concrete guidance on where the required identifier comes from ('Use file_id from message.files[].id, e.g. from channel history'), which routes the agent from a history-listing tool to this one. It lacks an explicit when-not or named alternative, so it stops short of full routing guidance.

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