Skip to main content
Glama

delete_comment

Remove unwanted or inappropriate comments from your Instagram posts to maintain a positive and respectful community environment.

Instructions

Delete a comment on your Instagram post. Can only delete comments on your own media.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
comment_idYesComment ID to delete

Implementation Reference

  • Tool handler for "delete_comment" which calls the deleteComment method on the Instagram client.
    case "delete_comment":
      await c.deleteComment(args.comment_id);
      return JSON.stringify({ comment_id: args.comment_id, deleted: true }, null, 2);
  • Implementation of the deleteComment method in the InstagramClient which performs a DELETE request to the comment endpoint.
    async deleteComment(commentId: string): Promise<void> {
      await this.request("DELETE", commentId);
    }
  • src/index.ts:256-266 (registration)
    Registration of the "delete_comment" tool, including its schema and description.
      name: "delete_comment",
      description:
        "Delete a comment on your Instagram post. Can only delete comments on your own media.",
      inputSchema: {
        type: "object" as const,
        properties: {
          comment_id: { type: "string", description: "Comment ID to delete" },
        },
        required: ["comment_id"],
      },
    },

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/mcpware/instagram-mcp'

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