Skip to main content
Glama
kunwarVivek

mcp-github-project-manager

delete_issue_comment

Remove a comment from a GitHub issue by specifying its comment ID. This tool helps manage GitHub project discussions by deleting outdated or incorrect comments.

Instructions

Delete a comment from a GitHub issue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentIdYes

Implementation Reference

  • The core handler function that executes the delete_issue_comment tool by calling the GitHub Issues API to delete the specified comment using Octokit.
    async deleteIssueComment(data: {
      commentId: number;
    }): Promise<{ success: boolean; message: string }> {
      try {
        const octokit = this.factory.getOctokit();
        const config = this.factory.getConfig();
    
        await octokit.rest.issues.deleteComment({
          owner: config.owner,
          repo: config.repo,
          comment_id: data.commentId
        });
    
        return {
          success: true,
          message: `Comment ${data.commentId} deleted successfully`
        };
      } catch (error) {
        throw this.mapErrorToMCPError(error);
      }
  • Zod schema defining the input parameters for the delete_issue_comment tool: requires a positive integer commentId.
    // Schema for delete_issue_comment tool
    export const deleteIssueCommentSchema = z.object({
      commentId: z.number().int().positive("Comment ID must be a positive integer"),
    });
    
    export type DeleteIssueCommentArgs = z.infer<typeof deleteIssueCommentSchema>;
  • ToolDefinition object for delete_issue_comment, including name, description, input schema reference, and usage examples.
    export const deleteIssueCommentTool: ToolDefinition<DeleteIssueCommentArgs> = {
      name: "delete_issue_comment",
      description: "Delete a comment from a GitHub issue",
      schema: deleteIssueCommentSchema as unknown as ToolSchema<DeleteIssueCommentArgs>,
      examples: [
        {
          name: "Remove outdated comment",
          description: "Delete a comment that is no longer relevant",
          args: {
            commentId: 123456
          }
        }
      ]
    };
  • Registration of deleteIssueCommentTool (along with related comment tools) in the central ToolRegistry during initialization.
    // Register issue comment tools
    this.registerTool(createIssueCommentTool);
    this.registerTool(updateIssueCommentTool);
    this.registerTool(deleteIssueCommentTool);
    this.registerTool(listIssueCommentsTool);
  • Top-level MCP tool dispatcher that routes 'delete_issue_comment' calls to the ProjectManagementService handler.
    case "delete_issue_comment":
      return await this.service.deleteIssueComment(args);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Delete') which implies a destructive mutation, but doesn't mention critical details like whether deletion is permanent, what permissions are required, or what happens on success/failure. This leaves significant gaps for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that states the core purpose without unnecessary words. It's appropriately sized for a simple tool and front-loads the essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive mutation tool with no annotations, 0% schema description coverage, and no output schema, the description is inadequate. It doesn't address behavioral implications, error conditions, or what the tool returns, leaving the agent with insufficient context to use it safely and effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, meaning the single parameter 'commentId' is undocumented in the schema. The description doesn't add any parameter-specific information beyond what's implied by the tool name, so it doesn't compensate for the schema gap. However, with only one parameter, the baseline is higher than for multi-parameter tools.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Delete') and target resource ('a comment from a GitHub issue'), providing a specific verb+resource combination. However, it doesn't differentiate from sibling tools like 'delete_draft_issue' or 'delete_milestone' beyond the resource type, which prevents a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites (e.g., permissions needed), or exclusions. It lacks context about sibling tools like 'update_issue_comment' or 'list_issue_comments' that might be relevant alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/kunwarVivek/mcp-github-project-manager'

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