Skip to main content
Glama

hide_comment

Hide or unhide comments on Instagram posts to control visibility. Hidden comments remain accessible only to the comment author and post owner.

Instructions

Hide or unhide a comment on your Instagram post. Hidden comments are not visible to the public.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
comment_idYesComment ID to hide or unhide
hideNoTrue to hide, False to unhide

Implementation Reference

  • The core logic for hiding a comment using the client request method.
    async hideComment(commentId: string, hide = true): Promise<void> {
      await this.request("POST", commentId, { body: { hide } });
    }
  • src/index.ts:267-278 (registration)
    The tool definition and schema registration for hide_comment.
    {
      name: "hide_comment",
      description:
        "Hide or unhide a comment on your Instagram post. Hidden comments are not visible to the public.",
      inputSchema: {
        type: "object" as const,
        properties: {
          comment_id: { type: "string", description: "Comment ID to hide or unhide" },
          hide: { type: "boolean", description: "True to hide, False to unhide", default: true },
        },
        required: ["comment_id"],
      },
  • The handler logic that dispatches the tool call to the client's hideComment method.
    case "hide_comment":
      await c.hideComment(args.comment_id, args.hide ?? true);
      return JSON.stringify({ comment_id: args.comment_id, hidden: args.hide ?? true }, null, 2);

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