Skip to main content
Glama
TweetAPI MCP

TweetAPI MCP

Official

Get Users By IDs

tweetapi_user_by_ids
Read-onlyIdempotent

Fetch up to 100 public Twitter user profiles by numeric ID in one call and see missing accounts in completeness.notReturned; use username lookup when you have usernames.

Instructions

Fetch up to 100 public user profiles in one call by numeric user ID. Missing accounts are listed in completeness.notReturned. Use tweetapi_user_by_usernames when you have usernames. Read-only. Needs a TweetAPI API key and makes one TweetAPI request per call, usually costing 1 unit; each result includes a cost estimate.

Input Schema

NameRequiredDescriptionDefault
userIdsYesComma-separated string or array of up to 100 numeric user IDs.
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. Addedv0.2.1

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open world), and the description goes well beyond them: it discloses the API key requirement, one request per call, an approximate cost of 1 unit, and that per-result cost estimates are returned. It also explains the partial-failure behavior via completeness.notReturned, which is exactly the kind of behavioral detail an agent cannot infer from structured fields.

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?

Four tight sentences: purpose and limit first, then the partial-result note, then the sibling routing, then operational constraints. Every sentence carries information, though the cost clause is slightly dense and could be split for faster scanning.

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

Completeness4/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 explanation is not owed, and the description still adds auth, cost, and partial-result semantics for a batched read tool. The only real gap is guidance on when to choose responseFormat=compact, which is left entirely to the schema.

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 both userIds and responseFormat are already documented in the schema, including the enum semantics and the 100-item cap. The description's 'up to 100 ... numeric user ID' restates schema content and says nothing about responseFormat, so the 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 ('Fetch ... public user profiles ... by numeric user ID') plus a concrete scope cap of 100 per call. That distinguishes it clearly from the single-record sibling tweetapi_user_by_id and from the username-based siblings.

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?

Explicitly routes username-based lookups to tweetapi_user_by_usernames, which is the most likely confusion point in a family with ~45 user tools. It stops short of saying when not to use it or contrasting with the singular tweetapi_user_by_id, so it is strong rather than exhaustive guidance.

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