Skip to main content
Glama

ig_reply_to_comment

Reply to Instagram comments directly through the Meta MCP server by specifying a comment ID and your response message.

Instructions

Reply to a specific comment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
comment_idYesComment ID to reply to
messageYesReply text

Implementation Reference

  • The implementation of the `ig_reply_to_comment` tool, which registers the tool and defines its handler logic using the MetaClient to post a reply.
    // ─── ig_reply_to_comment ─────────────────────────────────────
    server.tool(
      "ig_reply_to_comment",
      "Reply to a specific comment.",
      {
        comment_id: z.string().describe("Comment ID to reply to"),
        message: z.string().describe("Reply text"),
      },
      async ({ comment_id, message }) => {
        try {
          const { data, rateLimit } = await client.ig("POST", `/${comment_id}/replies`, { message });
          return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] };
        } catch (error) {
          return { content: [{ type: "text", text: `Reply 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