Skip to main content
Glama

PostToData

Search posts

search_posts
Read-only

Find public posts that match a query. Returns compact results with source URLs where available. Use list_platforms first for input formats and coverage limits. Works on: facebook, pinterest, meta_ads, google_ads, bluesky, hackernews, youtube, reddit, x, tiktok, instagram, threads, xiaohongshu, douyin, bilibili, weibo, zhihu, kuaishou, wechat_mp, wechat_channels, wechat_search. Uses prepaid credit with an API key or OAuth access token.

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": {
      "platform": "<platform>",
      "query": "<query>"
    },
    "name": "search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoResult order. top = most popular: use it when the person asks for hot, popular, most-liked or top discussions. latest = newest first. Left out, the platform orders by relevance.
limitNoItems to return, 1 to 50. Default 10.
queryYesSearch text.
cursorNoOpaque cursor from page.next_cursor of the previous response.
platformYesWhich platform to read. Live now: Facebook, Pinterest, Meta Ad Library, Google Ads Transparency, Bluesky, Hacker News, YouTube, Reddit, X (Twitter), TikTok, Instagram, Threads, Xiaohongshu (RedNote), Douyin, Bilibili, Weibo, Zhihu, Kuaishou, LinkedIn, Telegram, WeChat Official Accounts, WeChat Channels, WeChat Search.
max_price_usdNoMaximum list price in USD for this call (e.g. "0.003"). Up to 6 decimal places, including zero. A higher current price returns 412 price_limit_exceeded before any upstream request or charge. REST also accepts X-Max-Price; if both are set, both limits apply.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / max_price_usd
      Added value: +{
      +  "description": "Maximum list price in USD for this call (e.g. \"0.003\"). Up to 6 decimal places, including zero. A higher current price returns 412 price_limit_exceeded before any upstream request or charge. REST also accepts X-Max-Price; if both are set, both limits apply.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / platform / description
      Previous value: -"Which platform to read. Live now: Bluesky, Hacker News, YouTube, Reddit, X (Twitter), TikTok, Instagram, Threads, Xiaohongshu (RedNote), Douyin."New value: +"Which platform to read. Live now: Facebook, Pinterest, Meta Ad Library, Google Ads Transparency, Bluesky, Hacker News, YouTube, Reddit, X (Twitter), TikTok, Instagram, Threads, Xiaohongshu (RedNote), Douyin, Bilibili, Weibo, Zhihu, Kuaishou, LinkedIn, Telegram, WeChat Official Accounts, WeChat Channels, WeChat Search."
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "bluesky",
      -  "hackernews",
      -  "youtube",
      -  "reddit",
      -  "x",
      -  "tiktok",
      -  "instagram",
      -  "threads",
      -  "xiaohongshu",
      -  "douyin"
      -]New value: +[
      +  "facebook",
      +  "pinterest",
      +  "meta_ads",
      +  "google_ads",
      +  "bluesky",
      +  "hackernews",
      +  "youtube",
      +  "reddit",
      +  "x",
      +  "tiktok",
      +  "instagram",
      +  "threads",
      +  "xiaohongshu",
      +  "douyin",
      +  "bilibili",
      +  "weibo",
      +  "zhihu",
      +  "kuaishou",
      +  "wechat_mp",
      +  "wechat_channels",
      +  "wechat_search"
      +]
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, but the description adds real value on top: results are compact with source URLs where available, and calls draw on prepaid credit via API key or OAuth token. That billing/auth disclosure is exactly the kind of context annotations cannot carry.

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-loads the purpose and keeps the credit/auth note short. The 21-item platform list is largely redundant with the platform enum and consumes a full sentence of the definition without adding discriminating information.

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

Completeness4/5

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

For a six-parameter search tool with no output schema, the description covers the essential surfaces: what is searched, what comes back, the prerequisite tool, and the billing model. Pagination and price-limit behavior live in the schema, so nothing critical is missing.

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 description coverage is 100%, so every parameter including the sort enum, limit range, cursor, and max_price_usd is already documented. The description only re-enumerates the platform set, which duplicates the schema enum rather than adding new meaning. Baseline 3 applies when the schema does the work.

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

Purpose4/5

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

States a specific verb and resource ("Find public posts that match a query") and scopes the result set to public content, which is meaningfully narrower than a generic post lookup. It does not, however, distinguish itself from siblings like get_user_posts or get_post, which an agent could easily confuse with query-based search.

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

Usage Guidelines4/5

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

Gives an explicit prerequisite sequence — "Use list_platforms first for input formats and coverage limits" — plus the auth/credit model needed to call it. It falls short of an exclusion rule (e.g., use get_user_posts when you want a specific author's posts rather than a keyword search).

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.

Resources