Skip to main content
Glama

threads_hide_reply

Hide a reply on your Threads post to manage content visibility while keeping it accessible via direct link.

Instructions

Hide a reply on your Threads post. Hidden replies are still visible if directly accessed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reply_idYesReply ID to hide

Implementation Reference

  • The threads_hide_reply tool is defined and registered within the `registerThreadsReplyTools` function. It takes a `reply_id` and calls the `client.threads` service to hide the reply.
    // ─── threads_hide_reply ──────────────────────────────────────
    server.tool(
      "threads_hide_reply",
      "Hide a reply on your Threads post. Hidden replies are still visible if directly accessed.",
      {
        reply_id: z.string().describe("Reply ID to hide"),
      },
      async ({ reply_id }) => {
        try {
          const { data, rateLimit } = await client.threads("POST", `/${reply_id}/manage_reply`, { hide: true });
          return { content: [{ type: "text", text: JSON.stringify({ success: true, hidden: true, ...data as object, _rateLimit: rateLimit }, null, 2) }] };
        } catch (error) {
          return { content: [{ type: "text", text: `Hide 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