glim_twitter_search
ActiveTool of glim.sh
declared in 1.0.0
Search Twitter/X. Returns a compact human-readable list by default; pass format='json' for full structured data. Use glim_twitter_get(ref) for full thread context. Use docs://search-operators for reference.
Parameters schema
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"query"
],
"properties": {
"sort": {
"enum": [
"latest",
"top"
],
"type": "string",
"description": "Sort by relevance or recency: \"top\" (most engaged tweets matching the query - best for \"what's the conversation about X\") or \"latest\" (newest first - best for monitoring/recency). Default: \"top\"."
},
"query": {
"type": "string",
"description": "Search query with operators (e.g. 'from:elonmusk AI min_faves:100 within_time:7d')"
},
"cursor": {
"type": "string",
"description": "Pagination cursor from previous search"
},
"format": {
"enum": [
"text",
"json"
],
"type": "string",
"default": "text",
"description": "Output format. 'text' (default): compact human-readable view, fewer tokens. 'json': full structured data for machine parsing."
},
"end_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2}))?$",
"description": "Only tweets before this time. YYYY-MM-DD (inclusive through end of day UTC) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)"
},
"start_date": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}(T\\d{2}:\\d{2}(:\\d{2}(\\.\\d+)?)?(Z|[+-]\\d{2}:?\\d{2}))?$",
"description": "Only tweets on or after this time. YYYY-MM-DD (UTC midnight) or ISO 8601 datetime with Z/offset (e.g. 2026-04-13T14:30:00Z)"
},
"expand_urls": {
"type": "boolean",
"default": false,
"description": "When true, auto-crawl entity URLs and attach crawled_content to tweets. Off by default: responses can grow by up to 4KB per expanded URL. Use glim_web_fetch(url) for targeted crawls instead."
}
}
}Parent server
glim.sh
https://github.com/glim-sh/glim-mcp
1/7 registries