Skip to main content
Glama

SocialDataX X / Twitter MCP

x_get_user_posts_by_username

Read-only

根据 X 用户名获取公开用户帖子列表;可直接使用结果里的非空 author.username,支持 page_token 翻页。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usernameYesX 用户名;推荐从搜索、详情、评论或评论回复结果的非空 author.username,或用户帖子列表结果的非空 author.username,或用户信息结果的非空 username 原样复制,该值不带 @;如果用户给的是 @username 也可以传;不要传用户主页链接、帖子链接或分享文案。
page_tokenNoX 用户帖子列表分页令牌。首次请求留空。继续翻页时必须将上一页返回的完整 next_page_token 原样作为 page_token 传回;page_token 是不透明分页令牌;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。只能用于同一用户帖子列表;切换 user_id、username 或 profile_url 时请清空 page_token 后从第一页重新获取。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes当前页 X 用户帖子列表;当前页可能为空,是否可继续翻页以 next_page_token 是否为空为准。
pointsYes本次成功调用的积分消耗与调用完成时的账户积分余额。
next_page_tokenYes下一页不透明分页令牌;为空表示没有更多用户帖子。继续翻页时必须将返回的完整 next_page_token 原样作为 page_token 传回;只用于当前用户帖子列表续页;不得修改、截断、缩写、脱敏、掩码、省略、规范化、重组或自行生成,不得用省略号替换中间内容。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/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 known. The description adds pagination support and the tip to use author.username from results, which is useful behavioral context. It does not disclose any additional behaviors (e.g., rate limits, auth) but the bar is lower due to annotations.

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?

The description is a single, concise sentence that front-loads the core purpose and includes the most important usage hint (author.username) and pagination support. No wasted words; every element contributes to understanding.

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?

Given the output schema exists, the annotations cover read-only and open-world, and both parameters are fully documented, the description is sufficient for an agent to call the tool correctly. It covers the essential information: resource, pagination, and reuse of author.username. No critical gaps are evident.

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%, so both parameters are already documented in the input schema. The description adds a tip about using author.username, but that is largely redundant with the schema's username description which already says to copy from author.username. The page_token behavior is also fully described in the schema, so the description adds minimal extra value.

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?

The description clearly states the action (get public user posts) and the resource (by X username). It is distinguishable from siblings like x_get_user_posts_by_profile_url or x_get_user_posts_by_user_id, though it doesn't explicitly mention alternatives. The purpose is immediately clear.

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

Usage Guidelines2/5

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

No guidance is provided on when to choose this tool over its siblings (profile_url or user_id variants). It also lacks conditions like 'use this when you have a username' or exclusions. The description implies usage by stating the resource, but it does not officially guide selection.

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