Skip to main content
Glama

threads_get_post

Retrieve details of a specific Threads post by post ID. Optionally specify comma-separated fields to customize the returned data.

Instructions

Get details of a specific Threads post.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idYesThreads post ID
fieldsNoComma-separated fields

Implementation Reference

  • The handler function for 'threads_get_post' tool. It makes a GET request to the Meta API for a specific post ID, using optional fields parameter, and returns the post data with rate limit info.
    // ─── threads_get_post ────────────────────────────────────────
    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 };
        }
      }
    );
  • Zod schema for the input parameters of 'threads_get_post': post_id (required string) and fields (optional string).
    {
      post_id: z.string().describe("Threads post ID"),
      fields: z.string().optional().describe("Comma-separated fields"),
    },
  • src/index.ts:50-50 (registration)
    Registration call in the main server setup that wires up the 'registerThreadsMediaTools' function (which contains the 'threads_get_post' tool).
    registerThreadsMediaTools(server, client);
  • src/index.ts:22-22 (registration)
    Import statement for the 'registerThreadsMediaTools' function from './tools/threads/media.js'.
    import { registerThreadsMediaTools } from "./tools/threads/media.js";
  • Module-level imports for zod (schema validation), McpServer (SDK), and MetaClient (API client) used by the tool handler.
    import { z } from "zod";
    import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
    import { MetaClient } from "../../services/meta-client.js";
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the burden of behavioral disclosure. It indicates a read operation ("Get details") but omits authentication requirements, rate limits, error handling, or what happens if the post is not found.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. However, it is slightly underspecified given the tool's context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (get one post), but the description lacks output schema details and behavioral info like error states. Given the minimal scope, the description is adequate but not comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the input schema already describes both parameters (post_id and fields). The description adds no additional meaning beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb "get" and the resource "details of a specific Threads post". It distinguishes itself from siblings like threads_get_posts (list) and threads_get_post_insights (analytics) through specificity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for fetching a single post, but does not explicitly state when to use this tool over siblings like threads_get_posts or threads_get_post_insights. No when-not or alternative guidance is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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