Skip to main content
Glama
Upload-Post

Upload-Post

Official

Get post comments

get_post_comments
Read-only

Lists comments on a social post by post ID or URL, or fetches replies under a specific comment for supported networks.

Instructions

List comments on a post. One endpoint for every network, chosen with platform. Identify the post by either postId or postUrl (YouTube: postId=videoId; LinkedIn: postId=the post urn; TikTok: postId=the video id, postUrl is not accepted). Add commentId to get the REPLIES hanging off that one comment instead of the post's top-level comments — replies are the same question with one more parameter, not another tool. Replies can be listed on TikTok, Threads, YouTube, Instagram, Facebook and LinkedIn (company Page posts only: a personal-profile post returns 403 linkedin_personal_not_supported), so you can check whether a comment already has an answer before replying; on X and Bluesky commentId returns 400 platform_not_supported. postId or postUrl is still required with commentId (on Facebook it picks the Page). A comment with no replies returns an empty list; a malformed id returns 400 invalid_comment_id, an unknown one 404 comment_not_found (LinkedIn: 404 linkedin_comment_not_found, pass the full comment_urn instead). Reads are cached for up to 60 seconds (up to 2 minutes on X); a comment created or deleted through Upload-Post by the same account shows up on the next read. TikTok: Requires the 'comments' capability on the profile's TikTok account (see the capabilities array in list_users). It is granted at connection time, so an account connected earlier has to reconnect TikTok before this works.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "user": "<user>"
    },
    "name": "get_post_comments"
  }
}

Input Schema

NameRequiredDescriptionDefault
userYesUpload-Post profile name.
afterNoPagination cursor returned by a previous call (`next_cursor`). For LinkedIn replies it is a numeric offset.
limitNoComments to return (1-50; that ceiling is both Meta's and TikTok's).
postIdNoPlatform media/post ID. YouTube: the videoId. LinkedIn: the post urn. TikTok: the video id (required — TikTok has no URL lookup).
postUrlNoPublic URL of the post.
platformNoSocial platform. One of instagram, facebook, youtube, linkedin, tiktok, x, threads, bluesky.instagram
commentIdNoReturn the replies under this comment instead of the post's top-level comments. TikTok, Threads, YouTube, Instagram, Facebook and LinkedIn (Page posts). LinkedIn: preferably the comment's full `comment_urn` (urn:li:comment:(...)); a bare numeric id is looked up among the post's first 250 comments. Sent as `comment_id`.

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.23.0
    • changedInput schema / properties / after / description
      Previous value: -"Pagination cursor returned by a previous call."New value: +"Pagination cursor returned by a previous call (`next_cursor`). For LinkedIn replies it is a numeric offset."
    • changedInput schema / properties / commentId / description
      Previous value: -"Return the replies under this comment instead of the post's top-level comments. Sent as `comment_id`."New value: +"Return the replies under this comment instead of the post's top-level comments. TikTok, Threads, YouTube, Instagram, Facebook and LinkedIn (Page posts). LinkedIn: preferably the comment's full `comment_urn` (urn:li:comment:(...)); a bare numeric id is looked up among the post's first 250 comments. Sent as `comment_id`."
  2. Changed2 schema fields changedv0.11.4
    • changedInput schema / properties / platform / description
      Previous value: -"Social platform. One of instagram, facebook, youtube, linkedin, tiktok."New value: +"Social platform. One of instagram, facebook, youtube, linkedin, tiktok, x, threads, bluesky."
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "instagram",
      -  "facebook",
      -  "youtube",
      -  "linkedin",
      -  "tiktok"
      -]New value: +[
      +  "instagram",
      +  "facebook",
      +  "youtube",
      +  "linkedin",
      +  "tiktok",
      +  "x",
      +  "threads",
      +  "bluesky"
      +]
  3. Changed7 schema fields changedv0.11.1
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / commentId
      Added value: +{
      +  "description": "Return the replies under this comment instead of the post's top-level comments. Sent as `comment_id`.",
      +  "type": "string"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Comments to return (1-50, Meta's cap)."New value: +"Comments to return (1-50; that ceiling is both Meta's and TikTok's)."
    • changedInput schema / properties / platform / description
      Previous value: -"Social platform. One of instagram, facebook, youtube, linkedin. TikTok is unsupported."New value: +"Social platform. One of instagram, facebook, youtube, linkedin, tiktok."
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "instagram",
      -  "facebook",
      -  "youtube",
      -  "linkedin"
      -]New value: +[
      +  "instagram",
      +  "facebook",
      +  "youtube",
      +  "linkedin",
      +  "tiktok"
      +]
    • changedInput schema / properties / postId / description
      Previous value: -"Platform media/post ID. YouTube: the videoId. LinkedIn: the post urn."New value: +"Platform media/post ID. YouTube: the videoId. LinkedIn: the post urn. TikTok: the video id (required — TikTok has no URL lookup)."
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  4. Changed3 schema fields changedv0.7.0
    • changedInput schema / properties / platform / description
      Previous value: -"Social platform. Only 'instagram' is currently supported."New value: +"Social platform. One of instagram, facebook, youtube, linkedin. TikTok is unsupported."
    • addedInput schema / properties / platform / enum
      Added value: +[
      +  "instagram",
      +  "facebook",
      +  "youtube",
      +  "linkedin"
      +]
    • changedInput schema / properties / postId / description
      Previous value: -"Platform media/post ID."New value: +"Platform media/post ID. YouTube: the videoId. LinkedIn: the post urn."
  5. First observedv0.4.0

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the read-only annotations by disclosing caching windows (60s, 2 minutes on X), read-after-write behavior for comments created/deleted through Upload-Post, and a concrete error taxonomy (400 invalid_comment_id, 404 comment_not_found, 403 linkedin_personal_not_supported, 400 platform_not_supported). It also surfaces an operational prerequisite that annotations cannot express: TikTok requires the 'comments' capability granted at connection time, so older accounts must reconnect.

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?

Front-loaded with purpose, then the commentId mode switch, then platform caveats, errors, caching, and the TikTok capability note — a sensible progression. It is dense and parenthetical-heavy, and a couple of clauses (e.g., the repeated per-platform postId mapping already in the schema) could be trimmed without losing meaning.

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

Completeness5/5

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

With an output schema present, return values need no explanation, and the description covers what remains: platform dispatch, id resolution, reply mode, pagination expectations via the schema, caching, and error semantics. For a 7-parameter, 8-platform read tool, nothing an agent needs to call it correctly appears to be missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it specifies that `postId` or `postUrl` remains required even alongside `commentId` (and that on Facebook it selects the Page), which the schema's required list does not convey. It also repeats per-platform id semantics and the LinkedIn comment_urn preference, marginal value over the schema but reinforcing a high-risk identifier choice.

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?

States a specific verb and resource ("List comments on a post") and immediately clarifies scope: one endpoint for all networks selected via `platform`. This cleanly separates it from write-side siblings such as set_post_comments, approve_comment, and comment_action.

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

Usage Guidelines5/5

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

Explicitly tells the agent when to add `commentId` (get replies instead of top-level comments) and preempts the likely mistake by saying replies are "the same question with one more parameter, not another tool." It also names per-platform exclusions (TikTok rejects `postUrl`, X and Bluesky reject `commentId` with 400, LinkedIn replies only on company Page posts), which is exactly the when/when-not guidance an agent needs.

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

Deploy Server

Other Tools