Skip to main content
Glama

fetch_platform_posts

Read-only

Posts read straight from a platform, with metrics and permalinks: the account's own, or other people's public posts.

source="own" (default): the connected accounts' own posts, Antwork's or not, one entry per account in accounts, so two LinkedIn accounts come back side by side. It includes posts made on the platform directly, which get_performance (Antwork-published posts only) does not; a duplicate check before drafting is create_post's similarRecent. LinkedIn personal profiles cannot be read this way (LinkedIn closed that API): they come back unsupported: true with a reason. Antwork-published posts on them still have metrics in get_performance and get_post. An account that could not be read has fetchError (reason, message): its empty posts is not an empty account, so say it could not be read, never that it has no posts. X answers carrying cachedAt come from a read kept up to a week (X bills per post read). A post's mediaUrls (Instagram, Facebook, Threads, Pinterest, Mastodon, Bluesky images) go to add_media(url=...) to repost the file; they expire. Instagram and TikTok page back through older posts: an entry with nextCursor has more, and cursor set to it reads that account's next page. Other networks return their newest posts only, with no cursor. A post's id with its accountId reads its comments, get_post(post_id=id, account_id=...), and answers them, reply_to_comment(account_id=...), except on TikTok, Pinterest, Google Business Profile, Slack, Discord, Telegram and LinkedIn personal profiles, which never share comments: skip those accounts' posts.

source="search" (query) or "account" (handle): public posts by anyone on platform, read with a connected account's sign-in and sorted by outlierScore, how many times its usual a post did (1 is typical; scoreBasis says against what: engagement per follower across the results, or a creator against their own median). Each post has text, url, author, format, metrics and traits (length bucket, first line, hashtag count, link, question). X, YouTube, Bluesky and Mastodon, plus Instagram creators only (source="account", public Business or Creator accounts, read with a Unified Login account; an Instagram Login one answers instagram_reconnect_for_discovery with the reconnect link). Any other platform, or an Instagram search, answers unsupported with the way around it. Paid plans; X searches have a weekly limit. A read is reused for a day.

Studying what went viral, in order: get_post_context for the user's account (the voice to write in); this tool for the outliers; the 2 or 3 patterns they share (hook, format, length, angle) named for the user, rather than their topics; a plan of variations on the user's own business, agreed before any create_post. A variation takes the structure, never the source's wording, and a quote names its creator.

Args: platform: One platform, e.g. "linkedin". Omitted = every connected one (own only; required otherwise). account_id: One connected account; with search/account, whose sign-in makes the read. max_posts: Own posts per account (1-25, default 10); with search/account, the same as limit. workspace_id: Workspace ID or name. Optional if user has only one workspace. source: "own" (default), "search" or "account". query: Keywords or a #hashtag; needs source="search" in the same call (own posts take none). handle: A creator's handle (on Mastodon user@server); needs source="account" in the same call (own posts take none). since_days: How far back with search/account, 1-30 (default 7 for search, 30 for account; X search reaches 7). limit: Posts returned with search/account (1-25, default 10); with own, the same as max_posts. cursor: An entry's nextCursor, for that account's next older page (own only; it names the account).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "fetch_platform_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
cursorNo
handleNo
sourceNoown
contextNoThe user's underlying goal for this call, in one sentence without personal details. Used for product analytics only.
platformNo
llm_modelNoThe model identifier of the calling assistant, or "unknown". Used for product analytics only.
max_postsNo
account_idNo
since_daysNo
workspace_idNo
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Output Schema

NameRequiredDescriptionDefault
_mcp_instructionsNoServer-issued metadata for this conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / cursor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Cursor"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request."New value: +"The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics."
  3. Changed6 schema fields changed
    • addedInput schema / properties / limit / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / limit / default
      Previous value: -10New value: +null
    • removedInput schema / properties / limit / type
      Removed value: -"integer"
    • addedInput schema / properties / max_posts / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / max_posts / default
      Previous value: -10New value: +null
    • removedInput schema / properties / max_posts / type
      Removed value: -"integer"
  4. Changed5 schema fields changed
    • addedInput schema / properties / handle
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Handle"
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 10,
      +  "title": "Limit",
      +  "type": "integer"
      +}
    • addedInput schema / properties / query
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Query"
      +}
    • addedInput schema / properties / since_days
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Since Days"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "default": "own",
      +  "title": "Source",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "context",
      -  "llm_model"
      -]New value: +[]
  6. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint=false, yet the description adds substantial behavior: fetchError semantics versus a genuinely empty account, unsupported platforms, cachedAt reuse for X, expiring mediaUrls, cursor pagination parity by network, paid-plan and weekly X-search limits, and a one-day read reuse. It does not contradict the annotations, but it is verbose enough that the safety-relevant and limit-relevant facts are buried in the middle of long paragraphs.

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

Conciseness3/5

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

The purpose is front-loaded and the backticked mode markers aid scanning, but the body is dense running prose with very long sentences and a multi-mode workflow paragraph that arguably belongs elsewhere. Length is partly justified by 13 parameters and three operating modes, yet the same facts (own vs search/account behavior) are restated in both the body and the Args block, and the X-cache and weekly-limit notes are scattered rather than grouped.

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?

An output schema exists, so return shapes need not be spelled out, yet the description still names the fields an agent must act on (outlierScore with scoreBasis, traits, nextCursor, mediaUrls, url/text/author). Error states, unsupported platforms and the Instagram reconnect path are all covered, which is what an agent needs to call this three-mode tool correctly.

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

Parameters5/5

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

Schema description coverage is only 23%, so the description must compensate, and it does: the Args block defines every mode-relevant parameter with ranges, defaults and defaults-per-source (max_posts 1-25 default 10; since_days 1-30 with per-source defaults; X capped at 7). It also captures cross-parameter constraints the flat schema cannot express ('query needs source="search" in the same call', cursor names its account) and the account_id sign-in semantics for search.

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 opening sentence states a specific verb and resource ('Posts read straight from a platform, with metrics and permalinks') and immediately scopes the three modes (own / search / account). It explicitly distinguishes itself from siblings: get_performance ('Antwork-published posts only') and get_post (comments). An agent can route between them without opening a schema.

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?

Gives explicit when-to-use rules for each source mode, names alternatives with the condition that selects them (get_performance for Antwork-only, create_post's similarRecent for duplicate checks, get_post_context before this tool when studying outliers), and even lays out an ordered workflow for the viral-study use case. Exclusions are stated (own posts take no query/handle; LinkedIn personal profiles unreadable).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.