Skip to main content
Glama
TweetAPI MCP

TweetAPI MCP

Official

Search Communities

tweetapi_community_search
Read-onlyIdempotent

Search X communities by keyword and retrieve one page of matching results, with cursor-based pagination for additional pages.

Instructions

Search X communities by keyword and fetch one page of matches. Pass a result's ID to tweetapi_community_details or tweetapi_community_tweets. Use tweetapi_search for posts and accounts. 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 communities by, as in X's community search.
cursorNocompleteness.nextCursor from the previous page. Omit it for the first page.

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 communities by, as in X's community search."
  2. Addedv0.2.1

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations it discloses the auth requirement (TweetAPI API key), the per-call request and unit cost, and that results carry a cost estimate. It also spells out the pagination contract, including the exact field to pass back (completeness.nextCursor).

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?

Six short sentences, front-loaded with the core action and scope, followed by routing, cost, and pagination details. Each sentence carries distinct information with no repetition.

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?

Complete for a 2-parameter, read-only search with an output schema: the description covers scope, aliases, cost, and pagination rather than restating return fields. Nothing an agent needs in order to call it correctly is left out.

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 coverage is 100%, so the baseline is 3, but the description adds practical meaning by tying cursor to completeness.nextCursor in the previous result and stating that it should be omitted on the first call. That goes slightly beyond the schema text, which is nearly identical but less explicit about the omit case.

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 communities by keyword') plus the scope of a single page. It explicitly separates itself from tweetapi_search (posts and accounts), so an agent can choose between them without opening either 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?

The description names the follow-up tools (tweetapi_community_details, tweetapi_community_tweets) and gives a clear alternative for a different resource type (tweetapi_search). What is missing is any when-not-to-use condition or guidance on query breadth, so it stops just short of a full routing rule.

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