Skip to main content
Glama

x_search

Read-only

Search X (formerly Twitter) in real time via xAI responses API, filtering by accounts and date ranges to find relevant posts.

Instructions

Search X (formerly Twitter) using xAI responses API with real-time index, account filters, and date ranges.

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": {
      "query": "<query>"
    },
    "name": "x_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query text, maximum 16000 characters
to_dateNoEnd date (YYYY-MM-DD), exclusive, real calendar date strictly later than from_date
auth_modeNoCredential selection mode: auto, api_key, or oauth
from_dateNoStart date (YYYY-MM-DD), inclusive, real calendar date
allowed_x_handlesNoAllowed X handles (max 10, without @), mutually exclusive with excluded_x_handles
excluded_x_handlesNoExcluded X handles (max 10, without @), mutually exclusive with allowed_x_handles
enable_image_understandingNoEnable image understanding for image-containing posts
enable_video_understandingNoEnable video understanding for video-containing posts

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already establish read-only, open-world, and non-destructive behavior, while the description usefully adds the xAI backend and real-time indexing context. It does not clarify authentication prerequisites despite the auth_mode parameter or describe response behavior, which is a modest gap given the absence of an output schema.

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 single sentence is front-loaded with the action and resource, then efficiently supplies the platform and major capabilities. It contains no filler or unnecessary repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Together with the comprehensive schema and annotations, the description is adequate for basic selection and invocation of this eight-parameter external search tool. It remains incomplete on selection tradeoffs, authentication expectations, and the shape or nature of returned results.

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%, and the schema already documents date inclusivity, handle-filter exclusivity, credential modes, and media-understanding options. The description's references to account filters and date ranges summarize those capabilities but add little parameter meaning beyond the schema.

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 combines a specific verb and resource: searching X/Twitter through the xAI Responses API. Mentioning the real-time index, account filters, and date ranges clarifies its capabilities, though it does not distinguish the tool from alternative search tools.

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?

Usage is implied for real-time X searches, especially those constrained by accounts or dates. There is no explicit guidance about when to choose this tool over another search method, when not to use it, or which use cases require its optional capabilities.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools