Skip to main content
Glama
adepanges

TeamRetro MCP Server

update_team

Modify team details such as name and tags using a unique team ID for accurate updates within the TeamRetro MCP Server's retrospective management system.

Instructions

Update an existing team

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesstring
tagsNostring[]
teamIdYesstring

Implementation Reference

  • The complete definition of the 'update_team' tool, including its Zod schema for input validation (team ID, optional name and tags), description, and handler function that calls the teamsService to perform the update.
    update_team: {
      schema: teamSchema.pick({
        id: true,
        name: true,
        tags: true
      }),
      description: "Update an existing team's details, such as its name and associated tags, by providing the team's ID",
      handler: async (args: {
        id: string;
        name?: string;
        tags?: string[];
      }) => {
        const { id, ...updateData } = args;
        return createToolResponse(teamsService.updateTeam(id, updateData));
      },
    },
  • src/tools.ts:13-22 (registration)
    Registration of teamTools (which includes update_team) by spreading into the main tools object used to generate toolSchema and toolHandlers.
    const tools = {
      ...userTools,
      ...teamTools,
      ...teamMembersTools,
      ...actionTools,
      ...retrospectiveTools,
      ...agreementTools,
      ...healthModelTools,
      ...healthCheckTools,
    };
  • The helper service method 'updateTeam' invoked by the tool handler, which performs a PATCH request to the TeamRetro API to update the team.
    /**
     * Update an existing team
     * @param teamId The ID of the team to update
     * @param data Team data to update
     * @returns Updated team object
     * @throws ErrorMCP if team not found or validation fails
     */
    async updateTeam(
      teamId: string,
      data: Partial<Pick<Team, "name" | "tags" | "members">>
    ): Promise<SingleApiResponse<Team>> {
      return this.patch<SingleApiResponse<Team>>(`/v1/teams/${teamId}`, data);
    }
Install Server

Other Tools

Related Tools

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/adepanges/teamretro-mcp-server'

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