get_team_info
Retrieve workspace details from Slack, including team information and configuration data for integration and management purposes.
Instructions
Get information about the Slack workspace/team.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- slack_mcp/server.py:446-454 (handler)The MCP tool handler for 'get_team_info'. It instantiates SlackClient and calls its get_team_info method, serializing the result to JSON or error.@mcp.tool() async def get_team_info() -> str: """Get information about the Slack workspace/team.""" try: client = SlackClient() result = await client.get_team_info() return json.dumps(result, indent=2) except Exception as e: return json.dumps({"error": str(e)}, indent=2)
- slack_mcp/server.py:187-190 (helper)SlackClient helper method that performs the actual Slack API call to 'team.info' endpoint.async def get_team_info(self) -> Dict[str, Any]: """Get information about the Slack workspace/team.""" return await self._make_request("GET", "team.info")
- slack_mcp/server.py:446-446 (registration)The @mcp.tool() decorator registers the get_team_info function as an MCP tool.@mcp.tool()