Skip to main content
Glama

delete_note

Permanently delete a note from a MantisBT issue. This irreversible action removes specified notes by providing issue and note IDs.

Instructions

Permanently delete a note from a MantisBT issue. This action is irreversible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_idYesNumeric issue ID that owns the note
note_idYesNumeric note ID to delete

Implementation Reference

  • The handler for the delete_note tool, which performs a DELETE request to the MantisBT API for a specific note.
      async ({ issue_id, note_id }) => {
        try {
          await client.delete<unknown>(`issues/${issue_id}/notes/${note_id}`);
          return {
            content: [{ type: 'text', text: `Note #${note_id} deleted from issue #${issue_id}.` }],
          };
        } catch (error) {
          const msg = error instanceof Error ? error.message : String(error);
          return { content: [{ type: 'text', text: errorText(msg) }], isError: true };
        }
      }
    );
  • Input validation schema for delete_note tool requiring issue_id and note_id.
    inputSchema: z.object({
      issue_id: z.coerce.number().int().positive().describe('Numeric issue ID that owns the note'),
      note_id: z.coerce.number().int().positive().describe('Numeric note ID to delete'),
    }),
  • Registration of the delete_note tool in the MCP server.
    server.registerTool(
      'delete_note',

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/dpesch/mantisbt-mcp-server'

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