Skip to main content
Glama

ig_delete_comment

Remove unwanted comments from Instagram posts using the Meta MCP server. This irreversible action helps maintain content quality by deleting specific comments.

Instructions

Delete a comment from your media post. This action is irreversible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
comment_idYesComment ID to delete

Implementation Reference

  • The tool registration and implementation handler for ig_delete_comment.
    server.tool(
      "ig_delete_comment",
      "Delete a comment from your media post. This action is irreversible.",
      {
        comment_id: z.string().describe("Comment ID to delete"),
      },
      async ({ comment_id }) => {
        try {
          const { data, rateLimit } = await client.ig("DELETE", `/${comment_id}`);
          return { content: [{ type: "text", text: JSON.stringify({ success: true, ...data as object, _rateLimit: rateLimit }, null, 2) }] };
        } catch (error) {
          return { content: [{ type: "text", text: `Delete comment failed: ${error instanceof Error ? error.message : String(error)}` }], 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/mikusnuz/meta-mcp'

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