Skip to main content
Glama

SocialDataX 今日头条 MCP

toutiao_search_posts

Read-only

按关键词或短语查找今日头条公开内容,支持按发布时间筛选和分页。不用于读取指定链接的详情或查找用户;不返回导航、百科、用户及视频聚合面板。

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": {
      "keyword": "<keyword>"
    },
    "name": "toutiao_search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordYes搜索词或关键词短语,例如 NBA、旅行攻略;不要传作品链接、用户主页链接或内容 ID。
page_tokenNo首次留空;续页原样传入上一页的 next_page_token,并保持 keyword 和 publish_time_range 不变。
publish_time_rangeNo发布时间范围:all 不限时间,hour 一小时内,day 一天内,week 一周内,month 一个月内,year 一年内。all

Output Schema

NameRequiredDescriptionDefault
itemsYes当前页内容列表,不包含聚合面板。
pointsYes本次成功调用的积分消耗与账户积分余额。
next_page_tokenYes下一页完整分页令牌;为空表示结束。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / page_token / description
      Previous value: -"首次留空;续页原样传入上一页的 next_page_token,并保持 keyword 不变。"New value: +"首次留空;续页原样传入上一页的 next_page_token,并保持 keyword 和 publish_time_range 不变。"
    • addedInput schema / properties / publish_time_range
      Added value: +{
      +  "default": "all",
      +  "description": "发布时间范围:all 不限时间,hour 一小时内,day 一天内,week 一周内,month 一个月内,year 一年内。",
      +  "enum": [
      +    "all",
      +    "hour",
      +    "day",
      +    "week",
      +    "month",
      +    "year"
      +  ],
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  3. Changed2 schema fields changed
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额。"New value: +"本次接口完成时看到的当前积分余额,可为负数。"
    • removedOutput schema / properties / points / properties / balance / minimum
      Removed value: -0
  4. Changed19 schema fields changed
    • addedOutput schema / properties / items / items / properties / author / properties / avatar_url / title
      Added value: +"Avatar Url"
    • addedOutput schema / properties / items / items / properties / author / properties / name / title
      Added value: +"Name"
    • addedOutput schema / properties / items / items / properties / author / properties / profile_url / title
      Added value: +"Profile Url"
    • addedOutput schema / properties / items / items / properties / author / properties / user_id / title
      Added value: +"User Id"
    • addedOutput schema / properties / items / items / properties / author / title
      Added value: +"ToutiaoSearchAuthor"
    • addedOutput schema / properties / items / items / properties / comment_count / title
      Added value: +"Comment Count"
    • addedOutput schema / properties / items / items / properties / cover_image_url / title
      Added value: +"Cover Image Url"
    • addedOutput schema / properties / items / items / properties / has_video / title
      Added value: +"Has Video"
    • addedOutput schema / properties / items / items / properties / like_count / title
      Added value: +"Like Count"
    • addedOutput schema / properties / items / items / properties / post_id / title
      Added value: +"Post Id"
    • addedOutput schema / properties / items / items / properties / post_url / title
      Added value: +"Post Url"
    • addedOutput schema / properties / items / items / properties / publish_time / title
      Added value: +"Publish Time"
    • addedOutput schema / properties / items / items / properties / read_count / title
      Added value: +"Read Count"
    • addedOutput schema / properties / items / items / properties / summary / title
      Added value: +"Summary"
    • addedOutput schema / properties / items / items / properties / title / title
      Added value: +"Title"
    • addedOutput schema / properties / items / items / title
      Added value: +"ToutiaoSearchItem"
    • addedOutput schema / properties / items / title
      Added value: +"Items"
    • addedOutput schema / properties / next_page_token / title
      Added value: +"Next Page Token"
    • addedOutput schema / title
      Added value: +"ToutiaoSearchResult"
  5. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds non-obvious scope context beyond that: results exclude navigation, encyclopedia entries, user cards and video aggregation panels, which tells the agent what it will not get back. It does not mention rate limits, auth, or result ordering, but with an output schema present those gaps are minor.

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

Conciseness5/5

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

Two sentences with no filler: the first states the positive capability, the second lists exclusions. The core purpose is front-loaded and the negative scoping is compactly packed into a single clause.

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?

With an output schema handling return values, full schema coverage and safety annotations, the description covers the remaining agent needs: what is searched, what can be filtered, and what result types are excluded. Only minor items, such as whether results are ranked or how many are returned per page, are absent, and the output schema likely covers the latter.

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 keyword, page_token and publish_time_range are already fully documented, including enum meanings and the pagination continuation rule. The description only restates that time filtering and paging exist, adding no syntax or constraint detail beyond the schema, so the baseline of 3 applies.

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 states a specific verb and resource ("按关键词或短语查找今日头条公开内容") plus the two capabilities that shape results (time filtering, pagination). It also rules out two sibling behaviors by name of function: reading detail from a given link (toutiao_get_post_detail_by_url) and finding users (toutiao_search_users), so an agent can distinguish it without opening any schema.

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?

It gives explicit when-to-use (keyword/phrase discovery) and when-not-to-use (not for detail-by-link, not for user lookup), which are the two most likely misroutes among the siblings. It stops short of naming the alternative tools to use instead, so the agent must infer the redirect from the sibling list.

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