Skip to main content
Glama
TwitterAPI.io MCP Server

TwitterAPI.io MCP Server

Official

get_user_last_tweets

Fetches recent tweets from an X/Twitter user by handle or numeric ID, returning posts in reverse chronological order with pagination and optional replies; use search_tweets for date/keyword filters.

Instructions

Fetch the most recent tweets posted by an X/Twitter user (newest first) using userName or userId. For specific date ranges or keyword filtering, prefer search_tweets.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_user_last_tweets"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoPagination cursor; omit for the first page.
userIdNoNumeric user ID (e.g. '44196397'). Provide either userName or userId.
userNameNoX/Twitter handle without @ (e.g. 'elonmusk'). Provide either userName or userId.
includeRepliesNoInclude reply tweets in addition to top-level tweets. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry behavioral weight; it does disclose result ordering (newest first), which is genuinely useful. But it is silent on typical gaps for this tool class: page size/result cap, what happens with protected or suspended accounts, and whether the read requires authentication. Adequate but not rich.

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?

Two tight sentences with the primary purpose front-loaded and the alternative routing second. No filler, though it does not use the space to add behavioral detail it could have.

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 simple four-parameter, read-only list tool with a fully documented schema and no output schema to explain, the description covers purpose, ordering, and alternative routing. Only secondary details like page size and edge-case behavior are absent.

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 coverage is 100% and each parameter already carries a descriptive string, including the userName/userId either-or rule and the includeReplies default. The description restates the identifier choice but adds no new semantics beyond the schema.

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 recent tweets by a user), specifies ordering (newest first), and names the identifier options. It is immediately distinguishable from search_tweets and the get_tweet_* siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly routes the agent: use this tool for a user's recent timeline, but use search_tweets for date ranges or keyword filtering. That is a concrete when-to-use / when-to-use-something-else rule.

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