Skip to main content
Glama
TweetAPI MCP

TweetAPI MCP

Official

Get Following IDs

tweetapi_user_following_ids
Read-onlyIdempotent

Fetch one page of numeric user IDs that a given user follows, with cursor-based pagination for walking large following graphs. Read-only; use the returned next cursor to request the next page.

Instructions

Fetch one page of user IDs (strings only, no profiles) that a user ID follows. Cheapest way to walk a large following graph. 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
countNoPage size from 1 to 500. Omit it for the default.
cursorNocompleteness.nextCursor from the previous page. Omit it for the first page.
userIdYesNumeric user ID. This tool does not look up usernames; call tweetapi_user_by_username first if you only have a username or profile link.

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 / count / description
      Added value: +"Page size from 1 to 500. Omit it for the default."
    • addedInput schema / properties / cursor / description
      Added value: +"completeness.nextCursor from the previous page. Omit it for the first page."
  2. Addedv0.2.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, yet the description still adds real value: API key requirement, one TweetAPI request per call, roughly 1 unit of cost, and a cost estimate in each response. It does not mention rate limits or throttling behavior, so it is strong but not complete on the operational side.

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?

Four tight sentences, front-loaded with what is returned and the cheapest-use case, then cost, then pagination. No redundant restatement of the name or title; every clause carries a distinct fact.

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?

For a paginated, cost-metered read tool with an output schema, the description covers the payload shape, cost model, auth need, and the exact continuation loop. Nothing an agent needs in order to call it correctly and iterate pages is missing.

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 would be 3, but the description goes beyond the schema by tying the cursor parameter to a specific output field ('this result's completeness.nextCursor'), which tells the agent where the next value comes from. The count parameter is left to the schema, which is acceptable at full coverage.

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 — fetch one page of user IDs that a given user ID follows — and immediately scopes the payload as 'strings only, no profiles', which is exactly what separates it from the profile-returning following-list siblings. An agent can pick this tool 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 a clear selection cue ('cheapest way to walk a large following graph') and a concrete pagination procedure, plus the schema note routing username-only callers to tweetapi_user_by_username. It stops short of naming the alternative explicitly (e.g. 'use tweetapi_user_following_list when you need profiles'), so the when-not guidance is implied rather than stated.

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