Skip to main content
Glama
Grok Search MCP

Grok Search MCP

by Hello-Lv-tu

Grok X Search

grok_x_search
Read-only

Search X posts, profiles, and threads through Grok for X-specific evidence. Use this high-cost tool only when required, as one request can expand into many metered searches.

Instructions

Search X posts, profiles, and threads through Grok's server-side x_search tool. High-cost opt-in tool: one request can expand into many metered searches and substantial token usage. Use only when X-specific evidence is required.

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
queryYesFocused X-specific search question

Output Schema

NameRequiredDescriptionDefault
modelNo
answerYes
citationsYes
responseIdNo
inputTokensNo
totalTokensNo
outputTokensNo
providerSlotNo
xSearchCallsYes
providerCountNo
costInUsdTicksNo
webSearchCallsYes
providerBaseUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare read-only, open-world, non-idempotent, non-destructive behavior, and the description adds cost disclosure the annotations do not cover: opt-in status, per-request fan-out into many metered searches, and substantial token usage. That is exactly the kind of behavior an agent needs before invoking an expensive open-world call.

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 no waste: what it does, what it costs, and when to use it, in that order. The cost warning is front-loaded before the usage constraint, which is the right priority for an agent deciding whether to call.

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?

An output schema exists, so return values need no explanation, and annotations cover the safety profile; the description fills the remaining gap with cost and scope. The only omission is how the "opt-in" is enacted, which the agent may still need to resolve elsewhere.

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?

Single parameter with 100% schema description coverage ("Focused X-specific search question"), so the schema already carries the semantics. The description adds no format, length, or phrasing hints beyond what the schema states, so the baseline of 3 applies.

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, profiles, and threads") and qualifies it as X-specific evidence gathering, which separates it from the sibling web-search tool without naming it. The agent can tell what the tool returns at a glance.

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?

Gives both a positive condition ("Use only when X-specific evidence is required") and an implicit alternative for general cases. The exclusion is clear, but it stops short of naming grok_web_search as the fallback, leaving the agent to infer it.

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