Skip to main content
Glama

search

Find X posts using full operator syntax, including date, tag, media, language, engagement and exclusion filters, with latest, top, or media modes and configurable result limits.

Instructions

Search X posts with the full operator language.

Supports from:, since:/until:, #tag, filter:media, filter:links, lang:, min_retweets:, min_faves:, -"term", OR, quoted_tweet_id:. Use mode="latest" for recency, "top" for relevance, "media" for visual posts only. Costs one request per ~20 results — the expensive call in bulk workflows.

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

Input Schema

NameRequiredDescriptionDefault
modeNolatest
limitNo
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.6
    • removedInput schema / properties / limit / description
      Removed value: -"Max tweets to return (default 20, max 100)."
    • removedInput schema / properties / mode / description
      Removed value: -"Search mode — \"latest\" (chronological), \"top\" (relevance), or \"media\" (photos/videos only)."
    • removedInput schema / properties / query / description
      Removed value: -"Search query. Supports X operators like \"from:username\", \"since:2026-01-01\", \"#hashtag\", \"filter:media\", \"lang:en\"."
  2. First observedv1.0.3

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it discloses a real cost model ('one request per ~20 results') and that this is the expensive call, which is genuinely useful. It does not cover authentication requirements, rate-limit behavior, or pagination/result-cap semantics beyond the cost hint.

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?

Three short sentences with the core purpose front-loaded, followed by operator syntax and then mode/cost guidance. Every sentence adds information an agent needs; nothing is redundant.

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 three-parameter search tool with an output schema already defining return values, the description covers purpose, query syntax, mode semantics, and cost. Only minor items like pagination boundaries and auth expectations are absent.

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 0%, so the description must supply parameter meaning — and it does for 'mode' by enumerating all three values and their intent, plus extensive query operator syntax that the schema does not express. The 'limit' parameter is only indirectly explained through the ~20-results cost note, leaving one gap.

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 and resource ('Search X posts') plus the distinguishing capability (full operator language), which separates it from the sibling search_* tools that target users, DMs, or bookmarks. An agent can identify the tool's domain without opening the schema.

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

Usage Guidelines4/5

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

Explicitly assigns meaning to each mode value ('latest' for recency, 'top' for relevance, 'media' for visual posts) and warns that it is 'the expensive call in bulk workflows,' which signals when to avoid heavy use. It stops short of naming an alternative tool to use instead, so routing guidance is implied rather than stated.

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