Skip to main content
Glama

delete_group_milestone

Remove a milestone from a GitLab group to clean up project tracking and organize development workflows.

Instructions

Delete a milestone from a GitLab group

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idYesGroup ID or URL-encoded path
milestone_idYesThe ID of the group milestone

Implementation Reference

  • Handler for the delete_group_milestone tool, implementing the API call to delete a milestone from a group.
    export async function deleteGroupMilestone(groupId: string, milestoneId: number): Promise<void> {
      if (!groupId?.trim()) {
        throw new Error("Group ID is required");
      }
      if (!milestoneId || milestoneId < 1) {
        throw new Error("Valid milestone ID is required");
      }
    
      const endpoint = `/groups/${encodeURIComponent(groupId)}/milestones/${milestoneId}`;
      await gitlabDelete(endpoint);
    }
  • Zod schema for validating arguments to the delete_group_milestone tool.
    export const DeleteGroupMilestoneSchema = z.object({
      group_id: z.string().describe("Group ID or URL-encoded path"),
      milestone_id: z.number().describe("The ID of the group milestone")
    });
  • src/server.ts:384-386 (registration)
    Tool registration/invocation logic for delete_group_milestone in the main server handler.
    case "delete_group_milestone": {
      const args = DeleteGroupMilestoneSchema.parse(request.params.arguments);
      await api.deleteGroupMilestone(args.group_id, args.milestone_id);

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/TheRealChrisThomas/gitlab-mcp-server'

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