get_channel_info
Retrieve detailed information about a specific Slack channel using its channel ID to access channel properties and metadata.
Instructions
Get detailed information about a specific Slack channel.
Args: channel_id: The ID of the channel
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel_id | Yes |
Implementation Reference
- slack_mcp/server.py:241-254 (handler)MCP tool handler for get_channel_info: creates SlackClient, calls its get_channel_info method, and returns JSON string of the result.@mcp.tool() async def get_channel_info(channel_id: str) -> str: """ Get detailed information about a specific Slack channel. Args: channel_id: The ID of the channel """ try: client = SlackClient() result = await client.get_channel_info(channel_id) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
- slack_mcp/server.py:87-90 (helper)SlackClient helper method that makes API request to Slack's conversations.info endpoint to fetch channel details.async def get_channel_info(self, channel_id: str) -> Dict[str, Any]: """Get detailed information about a specific channel.""" params = {"channel": channel_id} return await self._make_request("GET", "conversations.info", params=params)