Skip to main content
Glama
piekstra

Slack MCP Server

by piekstra

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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)
  • 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")
  • The @mcp.tool() decorator registers the get_team_info function as an MCP tool.
    @mcp.tool()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/piekstra/slack-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server