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
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | Comment ID to delete |
Implementation Reference
- src/tools/instagram/comments.ts:128-142 (handler)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 }; } } );