Skip to main content
Glama

threads_get_post

Retrieve specific Threads post details using its ID to access content, metadata, or specified fields from the Meta platform.

Instructions

Get details of a specific Threads post.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idYesThreads post ID
fieldsNoComma-separated fields

Implementation Reference

  • Handler implementation for the 'threads_get_post' tool.
    server.tool(
      "threads_get_post",
      "Get details of a specific Threads post.",
      {
        post_id: z.string().describe("Threads post ID"),
        fields: z.string().optional().describe("Comma-separated fields"),
      },
      async ({ post_id, fields }) => {
        try {
          const f = fields || "id,media_product_type,media_type,media_url,permalink,text,timestamp,shortcode,is_quote_post,has_replies,reply_audience,topic_tag,link_attachment_url,poll_attachment,gif_attachment,alt_text";
          const { data, rateLimit } = await client.threads("GET", `/${post_id}`, { fields: f });
          return { content: [{ type: "text", text: JSON.stringify({ ...data as object, _rateLimit: rateLimit }, null, 2) }] };
        } catch (error) {
          return { content: [{ type: "text", text: `Get post 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