Skip to main content
Glama

SocialDataX X / Twitter MCP

x_search_suggestions

Read-only

获取 X / Twitter 搜索框的关键词联想,不返回帖子或推荐用户,不支持分页。可将返回的 text 用于帖子搜索;已有明确搜索词时可直接搜索帖子。

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": "x_search_suggestions"
  }
}

Input Schema

NameRequiredDescriptionDefault
keywordYes搜索关键词或短语,例如 food、OpenAI;不要传帖子链接、用户主页链接、ID 或分页令牌。

Output Schema

NameRequiredDescriptionDefault
itemsYes关键词建议列表,保持返回顺序;没有匹配建议时为空数组。
pointsYes本次成功调用的积分消耗与账户积分余额。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / points / description
      Previous value: -"本次成功调用的积分消耗与调用完成时的账户积分余额。"New value: +"本次成功调用的积分消耗与账户积分余额。"
    • changedOutput schema / properties / points / properties / balance / description
      Previous value: -"本次接口完成时看到的当前积分余额,可为负数。"New value: +"优先返回调用完成时查询到的账户积分余额。查询失败时,回退到本次预扣后的余额快照。余额可为负数。"
  2. 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
  3. Changed4 schema fields changed
    • addedOutput schema / properties / items / items / properties / text / title
      Added value: +"Text"
    • addedOutput schema / properties / items / items / title
      Added value: +"XSearchSuggestionItem"
    • addedOutput schema / properties / items / title
      Added value: +"Items"
    • addedOutput schema / title
      Added value: +"XSearchSuggestionsResult"
  4. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already establish readOnlyHint and openWorldHint, so the safety profile is covered. The description adds genuinely new behavior: no pagination support and a note that the returned text is intended as input to post search. Only omission is any hint about result volume or rate limits.

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 short sentences, front-loaded with what the tool returns and followed by the negative scope and the routing advice. No redundant or padded language.

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?

For a single-parameter read tool with an output schema, the description covers purpose, non-returned data, pagination limits, and downstream usage of the result. Nothing an agent needs to call it correctly 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 coverage is 100% and the single parameter already documents examples and exclusions (no post links, profile links, IDs, or pagination tokens). The description adds no additional meaning about the keyword argument, so baseline 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 names a specific verb and resource ('获取 X / Twitter 搜索框的关键词联想') and immediately clarifies the scope with negatives: it does not return posts or recommended users. This distinguishes it cleanly from x_search_posts and x_search_users without requiring the agent to open either 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?

It explicitly states when to use it (to get suggestion text that can then be fed into post search) and when not to (if a clear search term already exists, search posts directly). Both the alternative and the condition selecting it are stated.

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