Skip to main content
Glama

get_team_info

Retrieve workspace details from Slack, including team information and configuration, to understand the current workspace environment.

Instructions

Get information about the Slack workspace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_team_info' tool. It validates input with getTeamInfoSchema, then calls Slack's team.info() API via the client wrapper and returns the team information.
    export async function getTeamInfo(client: SlackClientWrapper, args: unknown) { getTeamInfoSchema.parse(args ?? {}); return await client.safeCall(async () => { const result = await client.getClient().team.info(); return { team: result.team, }; }); }
  • Zod schema definition for validating inputs to the getTeamInfo tool. It defines an empty object schema, indicating no input parameters are required.
    export const getTeamInfoSchema = z.object({});
  • src/index.ts:397-404 (registration)
    Registers the 'get_team_info' tool in the MCP server's tools list, providing name, description, and input schema for the list_tools request.
    { name: 'get_team_info', description: 'Get information about the Slack workspace', inputSchema: { type: 'object', properties: {}, }, },
  • src/index.ts:441-441 (registration)
    Maps incoming 'get_team_info' tool calls to the workspaceTools.getTeamInfo handler function in the toolHandlers object used by the call_tool request handler.
    get_team_info: (args) => workspaceTools.getTeamInfo(slackClient, args),

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/Hais/slack-bot-mcp'

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