Skip to main content
Glama
grok-search-mcp

grok-search-mcp

by z2z23n0

Search X with Grok CLI

grok_x_search

Search X/Twitter posts through a local Grok CLI profile without using xAI API credits. Filter by date, handles, and result count for coding agents.

Instructions

Search X/Twitter through an isolated Grok CLI profile. Does not use xAI API credits.

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

Input Schema

NameRequiredDescriptionDefault
queryYesX/Twitter search query.
sinceNoOptional lower date bound or recency hint.
untilNoOptional upper date bound.
handlesNoOptional X handles to prioritize, e.g. @grok.
maxResultsNoMaximum high-signal results to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 burden. It usefully discloses two non-obvious traits: execution goes through an isolated CLI profile and no xAI API credits are consumed. It omits other important behavior such as rate limits, authentication setup requirements, and what the results look like.

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?

Two short sentences with zero filler, and the core purpose is front-loaded. It is on the sparse side, but nothing is wasted or buried.

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

Completeness2/5

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

For a five-parameter tool with no annotations and no output schema, the description is thin: it never describes return shape, result limits, or failure modes, and gives no sibling routing guidance. The credit/CLI detail is valuable but does not fill the gap.

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%, so all five parameters (query, since, until, handles, maxResults) are already documented in the schema. The description adds no syntax or format guidance beyond that, which is acceptable given the schema does the work.

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 X/Twitter") plus the execution mechanism ("through an isolated Grok CLI profile"). It does not differentiate itself from the sibling grok_web_search, so an agent must infer that this one targets X rather than the open web.

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 by the resource scope, and "Does not use xAI API credits" hints at when this is preferable (cost/credit considerations). However, there is no explicit statement of when to choose this over grok_web_search, and no prerequisites such as requiring an authenticated Grok CLI profile.

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