Skip to main content
Glama

Agent Tools API

read_x_post

Read X (Twitter) posts from x.com, twitter.com, fxtwitter.com, fixupx.com or vxtwitter.com URLs or post ids, without a login. Use when the user shares a link to a post and wants what it says, who wrote it, its media, the quoted post, or its like and repost counts. Set includeThread to also get the author's own earlier posts in the thread (oldest first, up to 25 posts). Replies from other accounts are not available: X serves them only to logged-in sessions, so every post carries replies.count and replies.available=false. Deleted, protected, suspended or age-restricted posts come back as a type "error" row with a code, never partial data. Reads only the posts asked for; no timelines, search or profiles.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
postsYesPost URLs or numeric ids, e.g. ["https://x.com/jack/status/20", "20"]
includeThreadNoAlso return the author's earlier posts in the same self-thread, oldest first (default false, at most 25 posts)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that no login is needed, that replies are structurally unavailable and why (with replies.count and replies.available=false), that deleted/protected/suspended/age-restricted posts return a type 'error' row rather than partial data, and how includeThread expands the result. These are exactly the failure modes an agent must anticipate.

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?

Front-loaded with what the tool reads, then usage trigger, then behavior caveats, then scope limits. Every sentence carries information an agent needs; nothing is redundant filler.

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?

There is no output schema, but the description compensates by describing what a result contains (text, author, media, quoted post, like/repost counts) and how failures surface as error rows. Nothing material is missing for correct invocation or result interpretation.

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 both parameters, including the URL/id example and the thread semantics (oldest first, max 25). The description restates the includeThread behavior without adding format, validation, or batching nuance beyond the schema — the correct baseline of 3.

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 (read) and resource (X/Twitter posts) and enumerates the accepted URL hosts and id forms. It also delimits scope explicitly — 'Reads only the posts asked for; no timelines, search or profiles' — so it is unmistakable against the unrelated sibling tools.

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?

Gives an explicit trigger ('Use when the user shares a link to a post and wants what it says, who wrote it, its media, the quoted post, or its like and repost counts') plus a clear exclusion set (no timelines, search, or profiles). It also names the includeThread switch and the condition for using it.

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.

Resources