Skip to main content
Glama
Alosies
by Alosies

delete_mr_discussion_note

Remove a specific comment from a merge request discussion in GitLab to manage feedback and maintain clean conversations.

Instructions

Delete a note from a merge request discussion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesProject ID or path
merge_request_iidYesMerge request internal ID
discussion_idYesThe ID of the discussion
note_idYesThe ID of the note to delete

Implementation Reference

  • The primary handler function that executes the tool logic by sending a DELETE request to the GitLab API to remove the specified note from an MR discussion.
    async deleteMRDiscussionNote(args: DeleteMRDiscussionNoteParams) { await this.client.delete( `/projects/${encodeURIComponent(args.project_id)}/merge_requests/${ args.merge_request_iid }/discussions/${args.discussion_id}/notes/${args.note_id}` ); return { content: [ { type: "text", text: JSON.stringify( { message: "Note deleted successfully" }, null, 2 ), }, ], }; }
  • TypeScript interface defining the input parameters for the deleteMRDiscussionNote handler.
    export interface DeleteMRDiscussionNoteParams { project_id: string; merge_request_iid: number; discussion_id: string; note_id: number; }
  • MCP tool definition and input schema registration for 'delete_mr_discussion_note'.
    { name: 'delete_mr_discussion_note', description: 'Delete a note from a merge request discussion', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID or path', }, merge_request_iid: { type: 'number', description: 'Merge request internal ID', }, discussion_id: { type: 'string', description: 'The ID of the discussion', }, note_id: { type: 'number', description: 'The ID of the note to delete', }, }, required: ['project_id', 'merge_request_iid', 'discussion_id', 'note_id'], }, },
  • src/server.ts:243-246 (registration)
    Server dispatch logic that maps incoming tool calls for 'delete_mr_discussion_note' to the appropriate handler method.
    case "delete_mr_discussion_note": return await this.mergeRequestHandlers.deleteMRDiscussionNote( args as unknown as DeleteMRDiscussionNoteParams );

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

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