Slack Tools
Overview
Read-only tools for searching Slack conversations. Used during postmortem generation to gather human context (deployment decisions, communication gaps, resolution steps) and during interactive chat for incident investigation.
Tools
list_slack_channels()
Returns all channels the bot can access: id, name, topic, purpose, member count. Use channel names and topics to identify relevant channels for the incident (look for service names, "incident", "oncall", "alerts").
get_channel_history(channel_id, oldest?, latest?, limit?)
Fetch messages from a channel. Scope with oldest/latest (ISO 8601) to the incident time window. Returns message text, timestamps, user IDs, and thread metadata (reply_count, thread_ts).
get_thread_replies(channel_id, thread_ts, limit?)
Fetch replies in a thread. Use when a message has reply_count > 0 and looks relevant.
Strategy for Incident Investigation
- Call
list_slack_channels— scan names/topics for the affected service or "incident"/"oncall" keywords - Call
get_channel_historyon the most relevant channels, scoped to the incident time window - Look for messages about: deployments, rollbacks, alerts firing, team handoffs, escalations
- If a message has
reply_count > 0and looks relevant, callget_thread_repliesfor full context
Limitations
- Read-only — cannot post messages
- Bot must be a member of the channel to read it
- No cross-channel search — must check channels individually by name