Skip to main content
Glama

x_search

Search X (Twitter) for posts, discussions, and trends using xAI's Grok API with web search. Apply time filters (day, week, month) and set result count up to 20.

Instructions

Search X (Twitter) for posts, discussions, and trends using xAI's Grok API with web search. Requires XAI_API_KEY. Cost: ~$0.05/call (web_search $0.005 × 8-9 calls + tokens).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query for X/Twitter
recencyNoTime filter for resultsweek
per_pageNoNumber of results to return
Behavior4/5

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

With no annotations, the description reveals key behavioral traits: web search powered by Grok, API key needed, and cost breakdown. This provides good transparency beyond what annotations would offer, though it could mention rate limits or data freshness.

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 sentences, front-loaded with purpose, then cost and key info. Efficient, though cost detail is specific and could be seen as extraneous for initial decision.

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?

Given 3 simple params, no output schema, no annotations, description covers purpose, authorization, cost. Could mention that results are from Grok's web search, not native X API, and what return format is. Still, fairly complete for a search tool.

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% and descriptions in schema are adequate. Description adds no extra meaning beyond schema for query, recency, per_page. No need for more since schema already describes them.

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?

Description clearly states it searches X/Twitter for posts, discussions, and trends using Grok API. Distinguishes from siblings like twitter_search by specifying the Grok API and web search integration.

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?

Mentions requirement for XAI_API_KEY and cost, but does not explicitly say when to use this vs siblings or when not to use it. The cost and API key hint at unique prerequisites, but no alternative tools are named.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bartonguestier1725-collab/scout-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server