Skip to main content
Glama
Grok Search MCP

Grok Search MCP

by Hello-Lv-tu

Grok Web Search

grok_web_search
Read-only

Search and browse the public web via Grok's server-side search, with optional domain allowlists or exclusions to narrow results and reduce metered requests.

Instructions

Search and browse the public web through Grok's server-side web_search tool. This is a metered external request and may invoke the upstream tool multiple times. Prefer narrower and cheaper search tools when they are sufficient.

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_web_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesFocused search question
allowed_domainsNoOnly search these domains, without schemes or paths
excluded_domainsNoExclude these domains; cannot be combined with allowed_domains

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/5.0
Behavior4/5

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

Well beyond the annotations, it discloses that requests are metered and that the upstream tool may be invoked multiple times — genuinely useful cost/behavior information not present in the readOnly/openWorld/destructive hints. It omits rate-limit specifics and any sense of how expensive a single call is, but the key cost signal is front and center.

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 tight sentences with the capability first, the cost/metering caveat second, and the routing preference last. Every sentence carries distinct information and nothing is repeated from the schema or annotations.

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?

With an output schema present and annotations covering safety and open-world behavior, the remaining burden is cost and routing, both of which are addressed. The only gap is a slightly ambiguous "browse" — it is unclear whether it fetches page content or only returns search results, though the domain filters suggest result-level behavior.

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 coverage is 100%, so all three parameters are already documented, including the constraint that allowed_domains and excluded_domains cannot be combined. The description adds no additional parameter guidance and does not explain the string/length limits, which is acceptable given the schema already carries that burden.

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 gives a specific verb+resource ("Search and browse the public web") and pins down the mechanism ("through Grok's server-side web_search tool"). The word "web" implicitly separates it from the sibling grok_x_search, but it never names that distinction explicitly, so an agent must infer the boundary rather than read it.

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?

It states a clear preference rule: use narrower/cheaper search tools when they suffice, which tells the agent this is the fallback rather than the default. It stops short of naming the specific alternative (grok_x_search) or stating any when-not condition for this tool itself, so the routing guidance is directional rather than complete.

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