radar-mcp

v1.27.2
@slack/radar-mcp Checked 3 days ago Published 4 days ago

MCP server and web dashboard for debugging Slack on Android and iOS Simulator

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ping

Check if Slack Radar is running. Returns uptime, buffer sizes, remaining session time, stream status, the Radar MCP tool version (mcp_version), dashboard_url (the URL the Radar web dashboard uses for this server, from SLACK_RADAR_WEB_PORT with default 8100, not a check that the dashboard is up), and which app/profile is bound: android_user_id (0 = personal, non-zero = a secondary user such as a work profile), profile ('personal'/'secondary'), and package. If the result has a warning field, show it to the user verbatim. The debug build can run on more than one user and only the first to bind wi…

ParameterTypeDescription
timeout_minutesnumberSet or extend the auto-shutdown timeout in minutes (default: 5).

get_recent_network_calls

Get recent HTTP network calls captured from the Slack Android app. Use when the user asks 'what just happened' / 'what's going on' (with get_recent_rtm_events), 'why isn't this loading' / 'this is broken' (with a screenshot, and status_code 400 or 500), or 'what API call was that' (then get_network_call_detail).

ParameterTypeDescription
limitnumberMax number of calls to return (default: 50)
status_codenumberFilter by HTTP status code
url_filterstringFilter calls by URL substring

get_network_call_detail

Get full details of a specific network call by ID, including request/response headers and bodies. A form-encoded request body also comes back decoded in request_body_decoded, one key per field name (a repeated name becomes an array), JSON-valued fields parsed; request_body is always the raw bytes. When the raw body or its decoded copy is over 64 KB the decoded copy is skipped and request_body_decoded_omitted says so; a field whose JSON was left unparsed is named in request_body_decoded_unparsed, with the reason. request_body_truncated: true means the device cap cut the body and request_body sh…

ParameterTypeDescription
id *numberThe call ID from get_recent_network_calls

get_recent_rtm_events

Get recent RTM (Real Time Messaging) event summaries. Use when the user asks 'what just happened' / 'what's going on' (with get_recent_network_calls). Event types use subtypes when there is one (message_changed, not message). Pass ids to save_test_case to keep them as a replay case.

ParameterTypeDescription
channelstringFilter by channel ID
directionstringFilter by event direction
event_typestringFilter by event type/subtype
limitnumberMax number of events to return (default: 50)

get_rtm_event_detail

Get full details of a specific RTM event by ID, including the complete JSON payload.

ParameterTypeDescription
id *numberThe event ID from get_recent_rtm_events

get_recent_clogs

Get recent clog (analytics) event summaries. Returns event name and timestamp. Use get_clog_detail for the full JSON payload. Use when the user asks 'did that clog fire' / 'check analytics'; pass name.

ParameterTypeDescription
limitnumberMax number of clogs to return (default: 50)
namestringFilter by event name substring

get_clog_detail

Get full details of a specific clog event by ID, including the complete JSON payload.

ParameterTypeDescription
id *numberThe clog ID from get_recent_clogs

get_recent_traces

Get recent performance trace summaries (one row per completed span from the app's telemetry pipeline). Returns trace name, span name, and duration. Use get_trace_detail for the full span, including its tags and the parent/trace ids. Use when the user asks 'why is this slow' / 'how long did X take' / 'show me the traces' / 'check performance'; pass name.

ParameterTypeDescription
limitnumberMax number of traces to return (default: 50)
namestringFilter by trace name or span name substring

get_trace_detail

Get full details of a specific performance trace by ID: trace and span names, the trace and parent ids, start/end/duration, and the span tags.

ParameterTypeDescription
id *numberThe trace ID from get_recent_traces

wait_for_events

Wait for matching events to arrive in real-time via the SSE stream. Use when the user asks 'watch what happens when I...': clear_buffers first, then wait. Leave event_type and channel unset unless the user names one. Use idle_timeout_ms, never a polling loop.

ParameterTypeDescription
channelstringFilter by channel ID
event_typestringRTM event type to wait for. The match is exact, so use the subtype when there is one (message_changed, not message).
idle_timeout_msnumberResolve after this many ms of silence (default: 3000)
sourcestringLimit to one stream: network, rtm, clog, log, trace, or switchboard (default: all). During a Slackbot voice session switchboard emits several records a second, so an unscoped wait fills with them; sco…
timeout_msnumberMax time to wait in ms (default: 30000)

get_switchboard_sessions

List the Slackbot voice (switchboard) sessions the device still holds, at most 8, newest first. A session is one voice conversation attempt, from the controller starting (before any socket opens) to it ending. Each entry carries session_id, team_id, began_at, ended_at (null live), total_captured, frames {incoming, outgoing}, last_state (newest connection/mic/speaking/user_speaking state, absent before the first state record), levels (newest level tick, or null), server_session_id (null until named), turns ({count, last_response_ms, last_clock}, null before the first timed turn) and saved_turn_…

get_switchboard_session

Get one voice session's summary plus the newest `limit` of its records (events), oldest first; events is only the page. Record kinds: state = connection, mic, speaking and user_speaking transitions (state_kind, from, to, cause) with Server:<code> and SwipedAway causes; frame = control frames in and out (direction, frame_type, bytes), audio frames carry frame_type audio and a byte count, never the audio; player = playback events rearm, jitter_trim, hold_refuse, reply_hold, reply_unhold, read_stall, pre_ready_drop with gap_ms, bytes_queued, dropped_chunks; phase = startup phase durations (phase,…

ParameterTypeDescription
id *numberThe session_id from get_switchboard_sessions
kindstringOnly records of this kind (default: every kind)
limitnumberHow many of the newest records to return (default: 50, max: 2000 per request; the device may hold more than this single request returns; for the whole session use export_switchboard_session or query_s…

export_switchboard_session

Write one Slackbot voice (switchboard) session's summary and its records to a plain-text file. Pages the device (up to 2000 per request, paged with before_id), then merges in this process's own live stream copy (read from its session event spool), so a call the device ring has since evicted can still show up if this MCP was connected while it happened. The export can stop early (for example an old device build that does not page, the 32 MB size cap, the page limit, or the device stopping answering), and the report notes say why anything is missing; the spool itself rotates at 100 MB across eve…

ParameterTypeDescription
idnumberThe session_id from get_switchboard_sessions. Omit to export the newest session.

get_app_state

Get the current app state from the device.

get_recent_logs

Get recent device logs for the Slack debug build. Android reads the app's Timber buffer first and falls back to logcat. iOS returns only Slack-authored unified logs captured since the Radar session was enabled; it cannot backfill earlier lines, and if the capture died it returns what it retained with a `capture_error`. The result's `source` is one of `app_buffer`, `logcat_capture`, `logcat_ring`, or `ios_unified_capture`. Leave `tag` out to get all recent lines. On Android, for native crashes, VERBOSE lines, or non-Slack processes, use adb logcat directly.

ParameterTypeDescription
grepstringOptional text to grep within the filtered output
limitnumberMax number of lines to return (default: 50, capped at 1000)
tagstringOptional substring filter: Android matches anywhere in the line; iOS matches the category/tag field. Use grep to search message text. Omit to return all recent lines.

list_profiles

List Android user profiles that have the Slack debug build running. Use this before activate_for_user when the user asks to switch profiles (personal vs a secondary user such as a work profile) or when logs/app state seem to point at the wrong profile. Returns each profile's userId (e.g. '0' for personal, '10' for a secondary user) and a human label.

activate_for_user

Activate Slack Radar on a specific Android user profile. Use after list_profiles to switch between the personal user and a secondary user (such as a work profile). Switching profiles restarts log capture with a new session-scoped file and reconnects the SSE event stream so events come from the newly activated profile; old captures remain on disk for up to 7 days. Call this when already connected and only the target profile needs to change. If the result has token_via_argv, the token had to go over the command line, and the field says why.

ParameterTypeDescription
user_id *stringAndroid user ID from list_profiles (e.g. '0' for personal, '10' for a secondary user).
timeout_minutesnumberAuto-shutdown timeout in minutes (default: 5).

capture_snapshot

Bundle the current Radar state into a single on-disk artifact for sharing. Writes to ~/.slack-radar/snapshots/snapshot-<ts>/: summary.md (read this first: failed calls, log errors, clogs, flags), bundle.json (network + RTM + clog + trace buffers, up to 1000 items each, plus feature flags, voice-session summaries, details of failed network calls, and device and app facts), logcat.tail.log (last N log lines), screenshot.png (current screen), and README.txt (receiver-facing explainer). Use when the user says 'save this', 'file this as a bug', 'share this', 'bundle this up', 'attach to a ticket',…

ParameterTypeDescription
include_logsbooleanInclude last N lines of the active logcat capture (default: true). No-op when no capture is active.
include_screenshotbooleanInclude a current screenshot (default: true). Requires a connected device.
log_tail_linesnumberHow many trailing lines of the capture file to include (default: 500, min: 1, max: 10000). Truncation flagged in counts.log_lines_truncated.
redactbooleanBlank auth headers, cookies and token-shaped strings (default: true). false keeps raw headers and tokens; only for a bundle that stays on this machine.

screenshot

Capture a screenshot from the connected Android device. Use when the user asks 'what am I looking at' / 'what screen is this'. Defaults to 720px; pass full_res only when detail matters.

ParameterTypeDescription
full_resbooleanCapture at full resolution (default: false)

record_screen

Record a short screen video from the connected Android device.

ParameterTypeDescription
duration_snumberRecording duration in seconds (default: 5, max: 30)

clear_buffers

Clear all captured network calls, RTM events and settled test runs from both device and local buffers.

_radar_session_enable

Enable Slack Radar for this session. Sets up ADB forwarding, activates the device-side server, and connects the SSE stream. Safe to repeat: on an already enabled session it checks the device first and returns the current status with already_enabled: true. It runs the full setup again when that check fails or the last activation did not land, the device, token or profile changed, the timeout changes, or Radar is in open mode. For a clean reset run /radar-disable, then /radar-enable. If it has token_via_argv, the token had to go over the command line, and the field says why. With more than one d…

ParameterTypeDescription
device_serialstringTarget device serial from adb devices. Optional; auto-selected when exactly one device is attached. When multiple devices are attached the enable fails with the list; retry with one of the listed seri…
timeout_minutesnumberDevice-side auto-shutdown timeout in minutes (default 5 on first enable, a repeat keeps the current window)

_radar_session_disable

Disable Slack Radar for this session. Tears down the SSE stream and clears local buffers.

open_radar_dashboard

Build or refine a custom live dashboard tab in the Slack Radar web UI from a spec YOU author. Suggest this when the user describes a live view the pre-built tabs (Live/Network/RTM/Clogs/Traces/Logs/Switchboard, plus the Database, Preferences, Feature Flags and Test cases browsers) do not cover (e.g. 'graph calls per second vs response time and flag slow ones', 'beep when I get a DM'); invoke it once they agree. Translate the request into the spec fields below and call this tool; it ensures the web dashboard is running (default http://localhost:8100, or the port set in SLACK_RADAR_WEB_PORT) and…

ParameterTypeDescription
source *stringWhich device stream to read. 'all' is a unified timeline mixing network, RTM, clog, trace, log, and switchboard. 'switchboard' is the Slackbot voice transport's own records (kind: session|state|frame|…
summary *stringONE honest plain-English line describing what this shows, including any active filter.
title *stringShort 1-3 word dashboard title; also the Custom tab label.
viz *arrayWidgets to compose. 'graph' requires a series array.
alertobjectSentry mode: {sound, flash, say, at}. 'at':N fires once when the match count reaches N; omit to fire on every match.
bodyContainsstringnetwork/all only: keep calls whose request/response BODY contains this substring (fetches each call's detail).
excludearrayStream sources only. Hide rows whose summary text (the same text the filter box searches, never bodies) contains any term, case-insensitive; a field:value term (kind:frame, no space after the colon) i…
extractobjectPull CONTENT from a record body into the feed: {parse:'response_body'|'request_body'|'data', field:'dot.path', label}.
highlightobjectFlag feed rows whose numeric field breaches a threshold: {field, op:'>'|'>='|'<'|'<='|'==', value, label}.
matchobjectCase-insensitive substring filter on SUMMARY fields, keyed by source. network: url/method/status_code; rtm: event_type/direction/channel; clog: event_name; trace: trace_name/span_name; log: tag/level/…
minLevelstringlog/all only: show log lines at this level or above (WARN keeps WARN, ERROR and FATAL). Rows of other kinds are unaffected. Omit to show every line; VERBOSE means the same and is stored as omitted.
rateWindowSecnumberSliding window in seconds for the rate widget (default 10).
seriesarrayRequired when viz includes 'graph'. 1-2 entries.

list_databases

List the app's on-device SQLite databases (the message store, telemetry, etc.) for the bound profile.

list_tables

List the tables (with row counts) in one on-device database. Pass a name from list_databases.

ParameterTypeDescription
db *stringDatabase name from list_databases
refreshbooleanRe-pull a fresh copy from the device instead of reusing the cached pull (default false)

query_database

Run a read-only SQL query against an on-device database and get the rows back. SELECT/PRAGMA/WITH only (writes and file access are blocked). Use it to answer 'is this row actually in the DB?' during a debug session. Results are capped by row count and total size (the store is plaintext PII); when trimmed the response sets truncated:true with total_rows, so narrow with WHERE/LIMIT and avoid group_concat/blob dumps.

ParameterTypeDescription
db *stringDatabase name from list_databases
sql *stringA single read-only statement (SELECT, WITH, PRAGMA, EXPLAIN)
refreshbooleanRe-pull a fresh copy from the device before querying (default false reuses this session's cached pull)

query_session

Read the whole current Radar session from the host event spool (every network/RTM/clog/trace/switchboard frame captured since radar was enabled), filtered and byte-capped so it cannot flood the model context. Device logs are not spooled; use get_recent_logs for those. Use it for 'everything since I enabled', 'the whole session', or 'what did I miss': the get_recent_* tools read the device rings, which drop the oldest events on a long session, while the spool keeps the full session record. A list read (no id) returns SUMMARY fields for network/RTM/trace and full clog and switchboard records inl…

ParameterTypeDescription
byte_capnumberMax serialized output bytes. Defaults to and is hard-capped at the response budget; a larger value is clamped down.
channelstringKeep frames with this exact channel id (RTM).
cursorstringAn OPAQUE paging token returned by a prior truncated result; pass it back verbatim to get the next older page across all sources. It is NOT an event id and NOT a count; do not construct or modify it.…
event_typestringKeep frames with this exact event_type (RTM). The match is case-sensitive, so use the subtype in lower case when there is one (message_changed, not message).
idnumberReturn the single whole frame with this id, bypassing the newest-first byte budget. Optionally scope with source. id addresses one record and is unrelated to cursor; there is no older-than-id filter,…
limitnumberMax frames to return; newest kept first.
namestringKeep frames whose name contains this substring (clog/trace).
sourcestringOpaque frame type tag to match, e.g. network, rtm, clog, trace, switchboard. Matched exactly, not enumerated.
status_codenumberKeep frames with this exact HTTP status code.
textstringKeep frames whose serialized JSON contains this substring anywhere (searches the whole frame, including clog detail).
url_filterstringKeep frames whose url contains this substring.

list_prefs

List the app's SharedPreferences XML files (including feature-flag files like debug_features_*.xml, which holds manual overrides, and easy_features_*.xml, the persisted server snapshot), with file sizes and the Android user they were read from. Use when the user asks 'what did the app remember' / 'what is cached in prefs' / 'what team_prefs are set'; then get_prefs.

ParameterTypeDescription
userstringAndroid user ID to read (0=personal, 10+=work profile). If omitted, uses the first available user.

get_prefs

Read a SharedPreferences file, parse it, and return its entries (key, type, value). When keys are provided, filter to those keys only (exact match). Reads the on-disk XML, which can lag the app's live in-memory state by the async-write window, so a value may be slightly stale. debug_features_* holds manual overrides only -- a flag absent there means no override was set, not that the flag is off. easy_features_*/feature_flags_* is the persisted server snapshot, not an override list -- a hit there is the server's value, still subject to the same write-lag caveat.

ParameterTypeDescription
file *stringFilename from list_prefs, e.g. 'default_preferences.xml'
keysarrayIf provided, filter results to only these keys (exact match). Omit to return all entries.
userstringAndroid user ID (0=personal, 10+=work profile). If omitted, uses the first available user.

search_prefs

Search SharedPreferences across all files for a user. Performs case-insensitive substring search on key names and stringified values. Returns per-file match results. Reads the on-disk XML, which can lag the app's live in-memory state by the async-write window, so a value may be slightly stale. A hit in debug_features_* is a manual override -- no hit means no override, not that the flag is off. A hit in easy_features_*/feature_flags_* is the server's persisted value, not an override.

ParameterTypeDescription
query *stringSearch substring (case-insensitive)
userstringAndroid user ID (0=personal, 10+=work profile). If omitted, uses the first available user.

list_feature_flags

List every feature flag the app knows about right now, with its EFFECTIVE value (local override if set, else the server value) and whether that value is a local override. One key appears once per scope and once per signed-in org, each row carrying its own value (plus an org_id on authenticated rows, when the device build reports one), so total_rows counts rows while total_flags counts distinct flags. `enabled` is the latest value. Rows carry session_enabled (the flag's own value the app runs now: the first-read value for a flag already read this session, or the value a read returns now for one…

ParameterTypeDescription
overriddenbooleanIf true, return only flags with a local override active. If false, return only flags with no override (server value in effect). Omit for the complete list.

search_feature_flags

Case-insensitive substring search on feature flag names, against the same live effective-value list as list_feature_flags. One key can match several rows, one per scope and per signed-in org, so matched_rows counts rows and matched_flags counts distinct flags. Rows carry session_enabled (the flag's own value the app runs now: the first-read value for a flag already read this session, or the value a read returns now for one not yet read) and restart_note when it differs from `enabled`; a toggle row where session_enabled or enabled is absent or not a boolean is not known, never a match; only whe…

ParameterTypeDescription
query *stringSearch substring, matched against the flag key (case-insensitive).

get_feature_flag

Look up one feature flag by its exact key (case-sensitive) and return its latest effective value and override status. Rows carry session_enabled (the flag's own value the app runs now: the first-read value for a flag already read this session, or the value a read returns now for one not yet read) and restart_note when it differs from `enabled`; a toggle row where session_enabled or enabled is absent or not a boolean is not known, never a match; only when both are booleans does a missing restart_note mean they match. Experiment rows carry session_group_name (the group the first read this sessio…

ParameterTypeDescription
key *stringExact flag key, e.g. 'android_some_flag'.
org_idstringOptional. Narrow to one signed-in workspace, using the org_id from an earlier row. Omit to get a row per org.
scopestringOptional. 'authenticated' (signed-in user) or 'unauthenticated' (visitor). Omit to get rows for every scope that exists.

run_test_case

Replay a case of made-up RTM frames into the app's own message handler on the device. case is a built-in name (message_changed, message_replied: a seed message then its update, 100 pairs at 10 frames a second) or the stem of ~/.slack-radar/test-cases/<name>.json, which replaces a built-in of the same name. Frames per run = repeat × events, and the rate counts every frame. Then call get_test_run(run_id, wait_seconds) until settled. A 409 active names active_run_id: get_test_run or stop_test_run it. A 409 settling, N ms left: wait that long and retry. A 400 names the refused frame. Debug builds…

ParameterTypeDescription
case *stringBuilt-in name or case file stem.
rate_per_secondnumber | nullFrames a second, 1 to 1000, or null for a burst. Default from the case.
repeatintegerTimes the case's events are sent. Default from the case.

get_test_run

Read one replay run, or the last ten with active_run_id when run_id is omitted. wait_seconds (max 45) polls until settled; it bounds when the last read starts and each read gets 3 s; an unsettled answer carries a note, call again. settled turns true 2 quiet s after the later of the run's end and its last counted event; frames still pending hold it up to 10 s after the end, then count as ignored. Trust summary only once settled: ok and failed count handler outcomes. by_type keys can be dotted, read summary.by_type["MESSAGE.MESSAGE_CHANGED"] for sent, ok, failed, max_ms and p50_ms/p90_ms/p99_ms…

ParameterTypeDescription
run_idstring
wait_secondsinteger

stop_test_run

Stop a replay run. 202 with the run while it stops, 200 once it has already ended, 404 unknown, 409 while still starting (retry in a moment). Its counts stay readable with get_test_run.

ParameterTypeDescription
run_id *string

save_test_case

Save RTM events you captured as a replay case under ~/.slack-radar/test-cases/<name>.json. ids come from get_recent_rtm_events. Only message, message_changed and message_replied frames from the server are kept. Channel, ts, user, client and file ids become test values and all text becomes filler of the same length, so the file holds no real ids or text. Every iteration replays the updates against one seeded message. Pass overwrite to replace a file or a built-in name. Then call run_test_case with the name.

ParameterTypeDescription
ids *arrayRTM event ids from get_recent_rtm_events.
name *stringCase name, letters, digits, _ or -, up to 64.
overwritebooleanReplace an existing file or a built-in name. Default false.
rate_per_secondinteger | nullFrames a second, 1 to 1000, or null for a burst. Default 10.
repeatintegerTimes the events are sent. Default 1.

list_test_cases

List the built-in and saved replay cases with repeat, rate, event count and counts by type. A file that cannot load shows its error.