Skip to main content
Glama
TweetAPI MCP

TweetAPI MCP

Official

Search Lists

tweetapi_list_search
Read-onlyIdempotent

Search X Lists by keyword and retrieve one page of matching Lists with IDs and a next cursor. Use returned List IDs for member or tweet lookups.

Instructions

Search X Lists by keyword and fetch one page of matching Lists. A page can be short without being the last one. Use the List IDs with tweetapi_list_tweets or tweetapi_list_members. Read-only. Needs a TweetAPI API key and makes one TweetAPI request per call, usually costing 1 unit; each result includes a cost estimate. Returns one page: to get the next one, call again with cursor set to this result's completeness.nextCursor.

Input Schema

NameRequiredDescriptionDefault
queryYesKeywords to find Lists by, 1 to 512 characters, as in X's List search.
cursorNocompleteness.nextCursor from the previous page. Omit it for the first page.
responseFormatNofull (default) returns TweetAPI's JSON unchanged. compact keeps full post text, IDs, links, original dates, counts, and cursors but drops bulky fields; output.fieldsOmitted lists what was dropped.

Output Schema

NameRequiredDescriptionDefault
costYes
modeYes
toolYes
noticeYes
outputYes
resultYes
endpointYes
usageDocsNo
paginationNoPagination exactly as TweetAPI returned it.
statusCodeYes
retrievedAtYesWhen the MCP server received this response (ISO 8601). Not the post or profile date, and not a promise that X's data was fresh at that moment.
completenessYes
resolvedInputNoIdentifiers the MCP server parsed from links or @handles before calling TweetAPI.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.3
    • addedInput schema / properties / cursor / description
      Added value: +"completeness.nextCursor from the previous page. Omit it for the first page."
    • addedInput schema / properties / query / description
      Added value: +"Keywords to find Lists by, 1 to 512 characters, as in X's List search."
  2. Addedv0.2.1

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 and idempotent, and the description adds real context beyond them: an API key requirement, one request per call at ~1 unit cost with a per-result cost estimate, and the non-obvious fact that a short page is not necessarily the last one. That pagination caveat is exactly the kind of behavioral detail annotations cannot convey.

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?

Front-loaded with purpose, then chaining, then safety/cost, then pagination — a sensible order with no filler. The final sentence partially restates the cursor parameter description, a minor redundancy.

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?

An output schema exists, so return shape need not be re-explained, and the description still covers auth, cost, page-size caveats, and continuation, which are the things an agent must know to invoke it correctly. Nothing material is missing for a cursor-paginated 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 description coverage is 100%, so all three parameters (including the responseFormat enum and cursor provenance) are already documented in structured form. The description reinforces cursor handling but adds no syntax or constraint beyond what the schema states, so baseline 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 Lists by keyword") plus the exact scope ("fetch one page of matching Lists"), which distinguishes it from the ID-based siblings like tweetapi_list_details and tweetapi_list_tweets. An agent can select it without opening the schema.

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 explicit downstream routing ("Use the List IDs with tweetapi_list_tweets or tweetapi_list_members") and precise pagination instructions for when to re-call with a cursor. It does not explicitly say when to prefer this over other search entry points such as tweetapi_search, so it falls short of full alternative coverage.

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