create_channel
Create a new public or private Slack channel by specifying a name and privacy setting. Simplify team collaboration with organized communication spaces directly from the Slack MCP Server.
Instructions
Create a new Slack channel.
Args: name: Name for the new channel is_private: Whether the channel should be private
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| is_private | No | ||
| name | Yes |
Implementation Reference
- slack_mcp/server.py:457-472 (handler)The main MCP tool handler for 'create_channel'. This function is decorated with @mcp.tool(), making it the executable tool logic that creates a new Slack channel by calling the SlackClient method.@mcp.tool() async def create_channel(name: str, is_private: bool = False) -> str: """ Create a new Slack channel. Args: name: Name for the new channel is_private: Whether the channel should be private """ try: client = SlackClient() result = await client.create_channel(name, is_private) return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
- slack_mcp/server.py:191-194 (helper)Supporting method in SlackClient class that makes the actual API call to Slack's conversations.create endpoint to create the channel.async def create_channel(self, name: str, is_private: bool = False) -> Dict[str, Any]: """Create a new channel.""" data = {"name": name, "is_private": is_private} return await self._make_request("POST", "conversations.create", json_data=data)
- slack_mcp/server.py:457-457 (registration)The @mcp.tool() decorator registers this function as an MCP tool named 'create_channel' (using the function name).@mcp.tool()