Skip to main content
Glama

x-twitter.user_timeline

Fetch a user's recent X (Twitter) posts, pinned tweet, and profile summary.

Provide user_name (handle without @) or rest_id (numeric user id). At least one is required. When rest_id is set, it takes precedence over user_name. Returns timeline entries with tweet text, engagement counts, media, quoted tweets, and author info. Use cursor from next_cursor to fetch the next page.

Cost = 4 tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cursorNoPagination cursor from a previous response next_cursor field.
rest_idNoNumeric X user id (rest_id). When provided, user_name is ignored.
user_nameNoX handle without the leading @ (for example elonmusk). Required when rest_id is omitted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
userNoProfile summary for the requested user.
pinnedNoPinned tweet object when the user has one pinned post.
statusNoTimeline fetch status from the upstream provider (ok on success).
timelineNoRecent posts from the user. Additional provider-specific fields may appear on each entry.
next_cursorNoCursor for the next timeline page, when available.
prev_cursorNoCursor for the previous timeline page, when available.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changed
    • changedInput schema / properties / rest_id / description
      Previous value: -"Numeric X user id (rest_id). When provided, screenname is ignored."New value: +"Numeric X user id (rest_id). When provided, user_name is ignored."
    • removedInput schema / properties / screenname
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "maxLength": 50,
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "X handle without the leading @ (for example elonmusk). Required when rest_id is omitted.",
      -  "title": "Screenname"
      -}
    • addedInput schema / properties / user_name
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 50,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "X handle without the leading @ (for example elonmusk). Required when rest_id is omitted.",
      +  "title": "User Name"
      +}
  2. Changed17 schema fields changed
    • changedOutput schema / $defs / GetXUserTimelineResponseTimelineItem / properties / display_text_range / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/GetXUserTimelineResponseTimelineItemDisplayTextRangeItem"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "integer"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / $defs / GetXUserTimelineResponseTimelineItem / properties / display_text_range / description
      Previous value: -"Start and end indices for the display text range."New value: +"Start and end character indices for the display text range."
    • changedOutput schema / $defs / GetXUserTimelineResponseTimelineItem / properties / media / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/GetXUserTimelineResponseTimelineItemMediaItem"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/$defs/GetXUserTimelineResponseTimelineItemMedia"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / $defs / GetXUserTimelineResponseTimelineItem / properties / media / description
      Previous value: -"Attached media items when present."New value: +"Attached media grouped by type (for example video and photo arrays) when present."
    • removedOutput schema / $defs / GetXUserTimelineResponseTimelineItem / properties / media / title
      Removed value: -"Media"
    • removedOutput schema / $defs / GetXUserTimelineResponseTimelineItemDisplayTextRangeItem
      Removed value: -{
      -  "additionalProperties": true,
      -  "properties": {
      -    "index": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Character index in the tweet text.",
      -      "title": "Index"
      -    }
      -  },
      -  "title": "GetXUserTimelineResponseTimelineItemDisplayTextRangeItem",
      -  "type": "object"
      -}
    • changedOutput schema / $defs / GetXUserTimelineResponseTimelineItemEntitiesHashtagsItem / properties / indices / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/GetXUserTimelineResponseTimelineItemEntitiesHashtagsItemIndicesItem"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "integer"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / $defs / GetXUserTimelineResponseTimelineItemEntitiesHashtagsItem / properties / indices / description
      Previous value: -"Start and end indices in the tweet text."New value: +"Start and end character indices in the tweet text."
    • removedOutput schema / $defs / GetXUserTimelineResponseTimelineItemEntitiesHashtagsItemIndicesItem
      Removed value: -{
      -  "additionalProperties": true,
      -  "properties": {
      -    "index": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Character index in the tweet text.",
      -      "title": "Index"
      -    }
      -  },
      -  "title": "GetXUserTimelineResponseTimelineItemEntitiesHashtagsItemIndicesItem",
      -  "type": "object"
      -}
    • changedOutput schema / $defs / GetXUserTimelineResponseTimelineItemEntitiesUserMentionsItem / properties / indices / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/GetXUserTimelineResponseTimelineItemEntitiesUserMentionsItemIndicesItem"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "type": "integer"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / $defs / GetXUserTimelineResponseTimelineItemEntitiesUserMentionsItem / properties / indices / description
      Previous value: -"Start and end indices in the tweet text."New value: +"Start and end character indices in the tweet text."
    • removedOutput schema / $defs / GetXUserTimelineResponseTimelineItemEntitiesUserMentionsItemIndicesItem
      Removed value: -{
      -  "additionalProperties": true,
      -  "properties": {
      -    "index": {
      -      "anyOf": [
      -        {
      -          "type": "integer"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Character index in the tweet text.",
      -      "title": "Index"
      -    }
      -  },
      -  "title": "GetXUserTimelineResponseTimelineItemEntitiesUserMentionsItemIndicesItem",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / GetXUserTimelineResponseTimelineItemMedia
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "photo": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/GetXUserTimelineResponseTimelineItemMediaPhotoItem"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Photo media items when present.",
      +      "title": "Photo"
      +    },
      +    "video": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/GetXUserTimelineResponseTimelineItemMediaVideoItem"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Video media items when present.",
      +      "title": "Video"
      +    }
      +  },
      +  "title": "GetXUserTimelineResponseTimelineItemMedia",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / GetXUserTimelineResponseTimelineItemMediaItem
      Removed value: -{
      -  "additionalProperties": true,
      -  "properties": {
      -    "media_url_https": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "HTTPS URL for the media asset.",
      -      "title": "Media Url Https"
      -    },
      -    "type": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ],
      -      "default": null,
      -      "description": "Media type (for example photo or video).",
      -      "title": "Type"
      -    }
      -  },
      -  "title": "GetXUserTimelineResponseTimelineItemMediaItem",
      -  "type": "object"
      -}
    • addedOutput schema / $defs / GetXUserTimelineResponseTimelineItemMediaPhotoItem
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "media_url_https": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "HTTPS URL for the photo asset.",
      +      "title": "Media Url Https"
      +    }
      +  },
      +  "title": "GetXUserTimelineResponseTimelineItemMediaPhotoItem",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / GetXUserTimelineResponseTimelineItemMediaVideoItem
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "media_url_https": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "HTTPS URL for the video thumbnail or asset.",
      +      "title": "Media Url Https"
      +    },
      +    "variants": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/GetXUserTimelineResponseTimelineItemMediaVideoItemVariantsItem"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Available video quality variants when present.",
      +      "title": "Variants"
      +    }
      +  },
      +  "title": "GetXUserTimelineResponseTimelineItemMediaVideoItem",
      +  "type": "object"
      +}
    • addedOutput schema / $defs / GetXUserTimelineResponseTimelineItemMediaVideoItemVariantsItem
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "bitrate": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "Video bitrate when provided.",
      +      "title": "Bitrate"
      +    },
      +    "content_type": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "MIME type for the media variant.",
      +      "title": "Content Type"
      +    },
      +    "url": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "description": "HTTPS URL for the media variant.",
      +      "title": "Url"
      +    }
      +  },
      +  "title": "GetXUserTimelineResponseTimelineItemMediaVideoItemVariantsItem",
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the burden of disclosure. It goes beyond schema by describing return contents (engagement counts, media, quoted tweets), pagination behavior, the required-input condition despite schema making parameters optional, and the token cost. It does not mention authentication, rate limits beyond cost, or potential errors, but the provided details are substantive.

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?

The description is compact and efficiently structured: a one-sentence purpose, a one-sentence input explanation, a one-sentence output summary, and a one-sentence pagination note plus cost line. Every sentence earns its place with no redundant or vague content.

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 read-only timeline fetch with an output schema available, this description is sufficiently complete. It covers input identification rules, precedence, output highlights, pagination mechanics, and cost. The agent can confidently select and invoke this tool without needing additional external context.

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%, with clear descriptions for all three parameters. The description adds meaningful rule-based semantics that are not in the schema: at least one of user_name or rest_id is required, and rest_id takes precedence. It also ties the cursor parameter to the output's next_cursor field, enriching 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?

The description clearly states 'Fetch a user's recent X (Twitter) posts, pinned tweet, and profile summary,' which is a specific verb+resource combination. This differentiates it from sibling tools like x-twitter.user_info (profile-only) and x-twitter.tweet_info (single tweet), as it explicitly covers timeline content plus profile summary.

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?

It provides clear context for use: how to specify the user via user_name or rest_id, that at least one is required, that rest_id takes precedence, and how to paginate using next_cursor. However, it does not explicitly mention when to prefer this tool over alternatives such as x-twitter.user_info or x-twitter.search, so it lacks exclusionary guidance.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool has a distinct purpose, further clarified by group prefixes and clear descriptions. Within each group, tools perform different operations (e.g., domains.lookup vs. domains.whois vs. domains.rdap) with no ambiguity.

Naming Consistency5/5

All tools follow a consistent group.tool_name pattern using snake_case. The naming is predictable and uniformly applied across all groups.

Tool Count4/5

78 tools is high, but the server aggregates multiple distinct API domains (11 groups). Each group has a reasonable number of tools, typically under 10, with TikTok having 17. The count reflects breadth, not bloat.

Completeness5/5

Each domain's tool set covers the primary expected operations (e.g., search, details, reviews, metrics, user info). There are no obvious gaps for read-only analytical use; features like posting are likely out of scope.