Skip to main content
Glama

Groundsocial

Latest posts of an X account

x_user_tweets
Read-onlyIdempotent

The latest posts of an X account, newest first (about 20).

An account’s latest posts and reposts, newest first, about 20, with meta.next_token for x_user_tweets_next (beta, 2 credits a page). For some accounts X shows logged-out visitors only their latest few original posts; then meta.view is "recent_originals" and there is no next page. The pinned post is not in the list (see x_user_get). Protected accounts answer target_private.

Cost: 1 credit per call, refunded automatically if the call fails. Read-only, public data only. Results include cost_credits and credits_remaining.

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": {
      "username": "<username>"
    },
    "name": "x_user_tweets"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoOnly posts on or after this time. Reaching an older post ends the walk: YYYY-MM-DD (UTC) or an ISO 8601 timestamp.
untilNoOnly posts on or before this time (a date includes that whole UTC day): YYYY-MM-DD (UTC) or an ISO 8601 timestamp.
usernameYesHandle, with or without the @, or a profile URL.
stop_at_idNoThe newest post you already hold (id or URL): the page stops just before it and there is no next page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the readOnlyHint=true annotation by disclosing cost mechanics (1 credit per call, auto-refund on failure, 2 credits per pagination page in beta), the logged-out visitor limitation that produces 'recent_originals', the absence of a next page in that case, and the presence of cost_credits/credits_remaining in results. The only gap is that the exact response shape isn't sketched, though pagination and result metadata are well covered.

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-loaded with the core purpose and pagination hint in the first two lines, then costs and caveats. There is some redundancy: 'latest posts ... newest first (about 20)' is restated almost verbatim in the following sentence ('An account's latest posts and reposts, newest first, about 20'), which costs a few words without new 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 read-only paginated list tool with no output schema and full schema coverage on four parameters, the description covers the operational essentials: page size, pagination token, terminal conditions, private-account behavior, and cost/refund semantics. It is complete enough to call correctly, with only a minor omission around exactly what fields each post carries.

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

Parameters4/5

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

Schema description coverage is 100%, so since, until, username, and stop_at_id are already fully documented by the schema, and the description names none of them explicitly. It does add cross-parameter meaning by explaining how a next token leads into x_user_tweets_next and by tying stop_at_id semantics implicitly to the paging model, which is slightly more than the schema baseline.

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?

States a specific verb+resource ('latest posts of an X account, newest first'), and immediately scopes it with expected volume ('about 20') and the pagination handle ('meta.next_token for x_user_tweets_next'). It also carves out what it does NOT return (pinned post) and points to x_user_get, which cleanly separates it from sibling tools.

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?

Explicitly routes the agent: continue with x_user_tweets_next when meta.next_token is present, stop when meta.view is 'recent_originals' (no next page), and use x_user_get for the pinned post. It also tells the agent what to expect for protected accounts ('answer target_private'), so both the when-to-use and when-not-to-use cases are covered.

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.