Skip to main content
Glama

remove_monitor

Remove a user from monitoring a MantisBT issue to stop email notifications about updates.

Instructions

Remove a user from the monitor list of a MantisBT issue. The user will no longer receive email notifications for updates to this issue.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
issue_idYesNumeric issue ID
usernameYesUsername of the monitor to remove

Implementation Reference

  • The registration and implementation handler for the 'remove_monitor' tool.
    server.registerTool(
      'remove_monitor',
      {
        title: 'Remove Issue Monitor',
        description: 'Remove a user from the monitor list of a MantisBT issue. The user will no longer receive email notifications for updates to this issue.',
        inputSchema: z.object({
          issue_id: z.coerce.number().int().positive().describe('Numeric issue ID'),
          username: z.string().min(1).describe('Username of the monitor to remove'),
        }),
        annotations: {
          readOnlyHint: false,
          destructiveHint: true,
          idempotentHint: false,
        },
      },
      async ({ issue_id, username }) => {
        try {
          await client.delete<unknown>(`issues/${issue_id}/monitors/${username}`);
          return {
            content: [{ type: 'text', text: JSON.stringify({ success: true }, null, 2) }],
          };
        } 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