Skip to main content
Glama

delete_team

Remove an existing team from TeamRetro MCP Server by specifying the team ID. Streamline team management and maintain accurate organizational structures.

Instructions

Delete an existing team

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
teamIdYesstring

Implementation Reference

  • Core handler function that executes the team deletion by sending an HTTP DELETE request to the TeamRetro API endpoint `/v1/teams/${teamId}` and returns a success response.
    async deleteTeam( teamId: string ): Promise<SingleApiResponse<any>> { await this.delete<any>(`/v1/teams/${teamId}`); return { success: true, data: {}, }; }
  • Registers the 'delete_team' tool with its Zod input schema, description, and handler function that calls the service method.
    delete_team: { schema: z.object({ teamId: idSchema, }), description: "Delete an existing team by its ID", handler: async (args: { teamId: string }) => createToolResponse(teamsService.deleteTeam(args.teamId)), },
  • src/tools.ts:13-22 (registration)
    Top-level registration where teamTools (including delete_team) is spread into the main tools object used for MCP tool schema and handler generation.
    const tools = { ...userTools, ...teamTools, ...teamMembersTools, ...actionTools, ...retrospectiveTools, ...agreementTools, ...healthModelTools, ...healthCheckTools, };
  • Generates the JSON schema for all tools, including delete_team, from their Zod schemas for MCP protocol.
    const toolSchema = Object.entries(tools).map(([name, tool]) => ({ name, description: tool.description, inputSchema: zodToJsonSchema(tool.schema, { $refStrategy: "none", }), }));
  • src/tools.ts:36-38 (registration)
    Registers the handlers for all tools, including delete_team, with error handling wrappers.
    Object.entries(tools).forEach(([name, tool]) => { toolHandlers[name] = (args: any) => toolErrorHandlers(tool.handler, args); });

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