Skip to main content
Glama
jhanglim
by jhanglim

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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), }, ], }; }
  • 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: {}, }, },

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/jhanglim/mattermost-mcp-server'

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