Skip to main content
Glama

Search X posts

search_tweets
Read-only

Search recent public posts on X (Twitter) by keywords — the X API covers roughly the last week. Uses the user's connected X account; if none is connected, give the user the link it returns. Results are stored in the user's brain automatically — do not re-save them with graph tools. The response splits posts into 'new' (never seen by this user before) and 'seen' (already stored on an earlier run). When running as a scheduled watcher, only report or email when 'new' is non-empty, and never include 'seen' posts. Link a post with label using the returned object ids. Pass found_by_object_id (your own agent node id, the id inside the [object:...] marker at the end of your instructions) so finds are filed under that agent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesWhat to search for. X search syntax works: keywords, @mentions, "exact phrases", OR.
found_by_object_idNoThe searching agent's own object id, from the [object:...] marker. Omit in normal chat.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

The description goes well beyond the readOnlyHint annotation by disclosing side effects and expected behaviors: results are auto-stored, new/seen splitting, watcher-mode reporting rules, how to link returned object IDs, and the found_by_object_id requirement. No contradiction with the annotation is apparent since the readOnlyHint refers to external state, not the internal memory side effect.

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?

The description is dense but not bloated; every sentence adds operational detail an agent needs. It front-loads the core purpose before moving into side effects and usage nuances. It could be split into clearer sections, but the content justifies the length.

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

Completeness5/5

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

Despite having no output schema, the description covers the essential return semantics (new/seen), the object-ID linking convention, storage behavior, auth fallback, scheduled-watcher handling, and the special parameter. This is a complete operational picture for calling the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds value by explaining when found_by_object_id should be passed versus omitted and why it matters, and by reinforcing that query uses X search syntax. This is a modest but real improvement over the schema alone.

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?

The description states a specific verb and resource: 'Search recent public posts on X (Twitter) by keywords.' It also scopes the search to roughly the last week, which clearly distinguishes it from sibling tools like get_my_tweets or web_search.

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 gives clear context for when to use this tool: searching recent public X posts by keywords and the account-connection requirement. It doesn't explicitly name sibling alternatives to exclude (e.g., get_my_tweets for one's own posts), so it stops short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.