Skip to main content
Glama

Groundsocial

Search X posts

x_search_tweets
Read-onlyIdempotent

Search recent X posts with X’s search operators (needs logged-in sessions).

Search posts with X’s own query syntax (from:, to:, since:, until:, min_faves:, lang:, filter:images, "exact phrase", -exclude, OR). For a hashtag pass #tag; for mentions of an account @handle -from:handle; for quotes of a post quoted_tweet_id:. product=latest (default) is newest first; top is X’s ranking. since/until add X’s since_time:/until_time:. Reads X’s logged-in web app through our account pool. While the pool is not configured on this deployment it answers 503 upstream_unavailable with a hint, and is never charged.

Cost: 10 credits 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": {
      "q": "<q>"
    },
    "name": "x_search_tweets"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYesX search query.
afterNoCursor: the previous page's `meta.next_token`.
sinceNoOnly posts on or after this time (sent to X as since_time:): YYYY-MM-DD (UTC) or an ISO 8601 timestamp.
untilNoOnly posts on or before this time (sent to X as until_time:): YYYY-MM-DD (UTC) or an ISO 8601 timestamp.
productNolatest (newest first, default) or top.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the dependency on logged-in sessions via an account pool, that an unconfigured pool returns 503 upstream_unavailable with a hint and is never charged, the 10-credit cost with automatic refund on failure, and the cost_credits/credits_remaining return fields. This is exactly the kind of operational context annotations (readOnly/openWorld/idempotent) cannot convey.

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?

Content is front-loaded with the core action and syntax, followed by product/since-until mapping and finally cost/availability. Dense but every sentence carries operational information; the only minor redundancy is restating "search posts with X's own query syntax" after the opening line.

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 search tool with no output schema, the description covers availability preconditions, cost, pagination cursor, and the shape of cost metadata in results. The actual post/result payload structure is undisclosed, though that is the only remaining gap.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: product=latest is newest-first while top is X's ranking, and since/until are forwarded as since_time:/until_time:. It clarifies the semantic mapping of these parameters to X's own query constructs rather than restating field descriptions.

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 ("Search recent X posts") plus the query language it accepts, so the agent knows exactly what operation this performs. It does not name or contrast any sibling (e.g. x_user_tweets, x_community_tweets, x_trends_tweets), so scoping vs alternatives is left to inference.

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

Usage Guidelines3/5

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

Gives concrete query-construction guidance ("for a hashtag pass #tag", "for mentions of an account @handle -from:handle", "quoted_tweet_id:<id>") and states the default product, which is genuinely useful context. However it never says when to prefer this tool over the sibling post-search tools, nor any exclusion beyond the 503-while-unconfigured note.

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.