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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/workspace.ts:4-14 (handler)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, }; }); }
- src/utils/validators.ts:108-108 (schema)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),