get_teams
Retrieve a list of all teams the current user belongs to in Mattermost for team management and navigation purposes.
Instructions
현재 사용자가 속한 모든 팀 목록을 가져옵니다.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:530-540 (handler)The handler for the 'get_teams' tool call in the CallToolRequestSchema switch statement. It invokes client.getTeams() and formats the response as JSON text.case "get_teams": { const teams = await client.getTeams(); return { content: [ { type: "text", text: JSON.stringify(teams, null, 2), }, ], }; }
- src/index.ts:143-145 (helper)Core implementation in MattermostClient class: fetches the current user's teams via Mattermost API endpoint '/users/me/teams'.async getTeams() { return await this.request("/users/me/teams"); }
- src/index.ts:257-264 (registration)Tool registration in ListToolsRequestSchema handler, including name, description, and input schema (no required parameters).{ name: "get_teams", description: "현재 사용자가 속한 모든 팀 목록을 가져옵니다.", inputSchema: { type: "object", properties: {}, }, },