Skip to main content
Glama
jhanglim
by jhanglim

get_channels

Retrieve channel lists for a specific team in Mattermost to manage communication channels and organize team discussions effectively.

Instructions

특정 팀의 채널 목록을 가져옵니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
team_idYes팀 ID

Implementation Reference

  • Handler for the 'get_channels' tool: extracts team_id argument, calls client.getChannelsForTeam(teamId), and returns the channels as formatted JSON text.
    case "get_channels": { const teamId = args.team_id as string; const channels = await client.getChannelsForTeam(teamId); return { content: [ { type: "text", text: JSON.stringify(channels, null, 2), }, ], }; }
  • Schema definition for the 'get_channels' tool, including name, description, and input schema requiring 'team_id'.
    { name: "get_channels", description: "특정 팀의 채널 목록을 가져옵니다.", inputSchema: { type: "object", properties: { team_id: { type: "string", description: "팀 ID", }, }, required: ["team_id"], }, },
  • Helper method in MattermostClient that fetches the channels for a given team ID via the Mattermost API.
    async getChannelsForTeam(teamId: string) { return await this.request(`/users/me/teams/${teamId}/channels`); }

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