Skip to main content
Glama

delete_issue

Permanently remove a MantisBT issue from the bug tracker. This irreversible action deletes the specified issue by its numeric ID.

Instructions

Permanently delete a MantisBT issue. This action is irreversible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesNumeric issue ID to delete

Implementation Reference

  • Registration of the delete_issue tool including its schema.
    server.registerTool(
      'delete_issue',
      {
        title: 'Delete Issue',
        description: 'Permanently delete a MantisBT issue. This action is irreversible.',
        inputSchema: z.object({
          id: z.coerce.number().int().positive().describe('Numeric issue ID to delete'),
        }),
        annotations: {
          readOnlyHint: false,
          destructiveHint: true,
          idempotentHint: true,
        },
      },
  • Handler function for the delete_issue tool that executes the delete operation.
    async ({ id }) => {
      try {
        await client.delete<unknown>(`issues/${id}`);
        return {
          content: [{ type: 'text', text: `Issue #${id} deleted successfully.` }],
        };
      } catch (error) {
        const msg = error instanceof Error ? error.message : String(error);
        return { content: [{ type: 'text', text: errorText(msg) }], isError: true };
      }
    }

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