Skip to main content
Glama

twitterapi-io-mcp-server

Get User's Recent Tweets

get_user_last_tweets
Read-onlyIdempotent

⚠️ ONLY for 'latest / recent / what's new' queries about a user. DO NOT use for date-range queries (e.g. 'tweets from January 2026', 'tweets last week', 'tweets between X and Y', 'tweets in 2025'). For specific dates / older tweets, use search_tweets with query like 'from:elonmusk since:2026-01-01 until:2026-02-01'.

Fetch the MOST RECENT tweets posted by a Twitter/X user, sorted by created_at descending (newest first). Provide EITHER userName (screen name, no @) OR userId (numeric). Use userId when known — handles can change. Set includeReplies=true to include the user's reply tweets in addition to top-level tweets. Paginates via cursor (~20 per page).

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 first page.
userIdNoTwitter/X numeric user ID (e.g. '44196397'). Provide EITHER userName OR userId. Prefer userId if known — handles can change.
userNameNoTwitter/X screen name without @ (e.g. 'elonmusk'). Provide EITHER userName OR userId.
includeRepliesNoInclude the user's reply tweets in addition to top-level tweets. Default false — only top-level tweets.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and non-destructive behavior. The description adds genuinely useful behavioral context beyond those annotations: newest-first ordering, cursor pagination with roughly 20 per page, and inclusion semantics for replies. It does not discuss permissions or rate limits, but for a read-only query tool that is a minor omission.

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?

The warning and routing guidance are front-loaded, followed by concise operational details. It is slightly verbose in restating schema parameter behavior, but every sentence contributes to correct tool selection or invocation.

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 four-parameter, read-only lookup tool with full schema coverage and no output schema, the definition covers selection criteria, required identity choice, reply inclusion, sort order, and pagination. Nothing an agent needs in order to call it correctly is missing.

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 already 100%, and the description largely repeats schema guidance: either userName or userId, prefer userId because handles can change, includeReplies adds replies, cursor pagination. It reinforces the choice but adds little that the schema does not already document, so the baseline 3 is appropriate.

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?

The description states a specific verb and resource ('Fetch the MOST RECENT tweets posted by a Twitter/X user') and defines the scope precisely as newest-first recent tweets. It distinguishes itself clearly from search_tweets for date-range queries without relying on sibling names alone.

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?

It gives explicit when-to-use guidance ('latest / recent / what's new') and explicit exclusions ('DO NOT use for date-range queries') with concrete example phrases. It also names the alternative tool and even illustrates the correct search_tweets query syntax.

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.