Skip to main content
Glama

Get user tweets

get_user_tweets
Read-onlyIdempotent

Get a user's recent tweets (their profile timeline, without replies), newest first, including retweets and pinned tweet. Paginated.

Input Schema

NameRequiredDescriptionDefault
countNoHow many tweets to request per page (default 20). X may return slightly more or fewer.
cursorNoPagination cursor. Leave empty for the first page; pass the next_cursor from a previous result to get the next page.
formatNoResponse format (default simple). simple: compact JSON with flat camelCase tweets and users, about 60% fewer tokens. raw: X's full GraphQL JSON, only needed for fields simple leaves out (cards, polls, edit history, community notes).
userIdNoNumeric X user ID (rest_id). Provide this or username. Using the ID is faster.
usernameNoX handle, used when you do not have the user ID. Provide this or userId.
max_charsNoMaximum characters of JSON to return (default 50000). Longer output is cut with a [TRUNCATED] marker. Lower it to save context, raise it if you need the full response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, open-world read (readOnlyHint=true, destructiveHint=false, idempotentHint=true). The description adds genuinely new behavioral facts beyond the annotations: newest-first ordering, inclusion of retweets and the pinned tweet, and pagination. It stops short of describing auth requirements or pagination semantics beyond 'Paginated'.

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?

A single front-loaded sentence that packs scope, ordering, content inclusions, and pagination with no filler. Every clause earns its place.

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?

For a 6-parameter read tool with an exceptionally rich schema and no output schema, the description covers content scope, ordering, and pagination adequately. It omits any note that an identifier (userId or username) is effectively required, leaving that 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 the schema already documents count, cursor, format, userId, username, and max_chars with defaults and constraints. The description only alludes to pagination and adds no parameter-level detail, 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 ('Get a user's recent tweets') and immediately scopes it ('their profile timeline, without replies'), which cleanly separates it from the sibling get_user_tweets_and_replies. An agent can pick this tool 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'without replies' clause implies when this tool is preferred over get_user_tweets_and_replies, but that sibling is never named and there is no explicit when-to-use or exclusion guidance. Usage is inferable rather than stated.

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.