Skip to main content
Glama

Read one public X (Twitter) post or tweet

read_x_post
Read-onlyIdempotent

Reads one public X (Twitter) post, a tweet, from the one x.com or twitter.com link (or post id) the user gives. Its only X call is X's official embed endpoint, publish.x.com/oembed, with no login and no key. Returns the post's text, author (handle, name), createdAt (YYYY-MM-DD), lang, the links in the text, hasMedia and embedHtml, X's own embed markup. When the post is a reply, X's embed shows the one parent post only where embedHtml is rendered with X's widgets.js; the parent's text, link and id are not in this answer, so to read the parent, call again with the parent's link (ask the user for it). X cuts posts longer than 280 characters in the embed and ends them with an ellipsis. No media files, quoted post, counts, other replies, threads, timelines, search or profiles. A post X will not embed (deleted, protected, age-restricted, suspended author) comes back as a type "error" row with code unavailable, never partial data.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "posts": "<posts>"
    },
    "name": "read_x_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
postsYesThe one post link or numeric id to read, e.g. ["https://x.com/jack/status/20"]

Output Schema

NameRequiredDescriptionDefault
cacheYesHow the result was served: HIT or STALE from a cache tier, MISS or BYPASS when it was fetched now.
resultsYesOne row for the one requested post, read through X's oEmbed endpoint, or an error row with a code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / posts / description
      Previous value: -"Post URLs or numeric ids, e.g. [\"https://x.com/jack/status/20\", \"20\"]"New value: +"The one post link or numeric id to read, e.g. [\"https://x.com/jack/status/20\"]"
    • changedInput schema / properties / posts / maxItems
      Previous value: -20New value: +1
    • changedOutput schema / properties / results / description
      Previous value: -"One row per requested post, read through X's oEmbed endpoint, or an error row with a code."New value: +"One row for the one requested post, read through X's oEmbed endpoint, or an error row with a code."
    • changedOutput schema / properties / results / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "author": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "createdAt": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "hasMedia": {
      -        "type": "boolean"
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "input": {
      -        "type": "string"
      -      },
      -      "lang": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "links": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "source": {
      -        "const": "oembed"
      -      },
      -      "text": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "post"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id",
      -      "url",
      -      "text",
      -      "author",
      -      "input"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "input": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "postId": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "type": {
      -        "const": "error"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "input",
      -      "code",
      -      "message",
      -      "retryable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "author": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "createdAt": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "embedHtml": {
      +        "type": "string"
      +      },
      +      "hasMedia": {
      +        "type": "boolean"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "input": {
      +        "type": "string"
      +      },
      +      "lang": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "links": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "source": {
      +        "const": "oembed"
      +      },
      +      "text": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "post"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "id",
      +      "url",
      +      "text",
      +      "author",
      +      "input"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "input": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "postId": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "type": {
      +        "const": "error"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "input",
      +      "code",
      +      "message",
      +      "retryable"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed3 schema fields changed
    • removedInput schema / properties / includeThread
      Removed value: -{
      -  "description": "Also return the author's earlier posts in the same self-thread, oldest first (default false, at most 25 posts)",
      -  "type": "boolean"
      -}
    • changedOutput schema / properties / results / description
      Previous value: -"One row per requested post (and its earlier thread posts when asked), or an error row with a code."New value: +"One row per requested post, read through X's oEmbed endpoint, or an error row with a code."
    • changedOutput schema / properties / results / items / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "article": {
      -        "additionalProperties": true,
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "author": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "counts": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "createdAt": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "id": {
      -        "type": "string"
      -      },
      -      "input": {
      -        "type": "string"
      -      },
      -      "media": {
      -        "items": {
      -          "additionalProperties": true,
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "quote": {
      -        "additionalProperties": true,
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "replies": {
      -        "properties": {
      -          "available": {
      -            "const": false
      -          },
      -          "count": {
      -            "type": [
      -              "number",
      -              "null"
      -            ]
      -          },
      -          "reason": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "available"
      -        ],
      -        "type": "object"
      -      },
      -      "text": {
      -        "type": "string"
      -      },
      -      "threadOf": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "type": {
      -        "const": "post"
      -      },
      -      "url": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "id",
      -      "url",
      -      "text",
      -      "author",
      -      "counts",
      -      "replies",
      -      "input"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "input": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "postId": {
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "status": {
      -        "type": [
      -          "number",
      -          "null"
      -        ]
      -      },
      -      "type": {
      -        "const": "error"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "input",
      -      "code",
      -      "message",
      -      "retryable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "author": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "createdAt": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "hasMedia": {
      +        "type": "boolean"
      +      },
      +      "id": {
      +        "type": "string"
      +      },
      +      "input": {
      +        "type": "string"
      +      },
      +      "lang": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "links": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "source": {
      +        "const": "oembed"
      +      },
      +      "text": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "post"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "id",
      +      "url",
      +      "text",
      +      "author",
      +      "input"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "input": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "postId": {
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "type": [
      +          "number",
      +          "null"
      +        ]
      +      },
      +      "type": {
      +        "const": "error"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "input",
      +      "code",
      +      "message",
      +      "retryable"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "cache": {
      +      "description": "How the result was served: HIT or STALE from a cache tier, MISS or BYPASS when it was fetched now.",
      +      "properties": {
      +        "ageSeconds": {
      +          "type": "number"
      +        },
      +        "source": {
      +          "enum": [
      +            "worker",
      +            "origin",
      +            "coalesced"
      +          ],
      +          "type": "string"
      +        },
      +        "status": {
      +          "enum": [
      +            "HIT",
      +            "STALE",
      +            "MISS",
      +            "BYPASS"
      +          ],
      +          "type": "string"
      +        },
      +        "tier": {
      +          "type": "string"
      +        },
      +        "ttlSeconds": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "status",
      +        "tier",
      +        "ageSeconds",
      +        "ttlSeconds"
      +      ],
      +      "type": "object"
      +    },
      +    "results": {
      +      "description": "One row per requested post (and its earlier thread posts when asked), or an error row with a code.",
      +      "items": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "article": {
      +                "additionalProperties": true,
      +                "type": [
      +                  "object",
      +                  "null"
      +                ]
      +              },
      +              "author": {
      +                "additionalProperties": true,
      +                "type": "object"
      +              },
      +              "counts": {
      +                "additionalProperties": true,
      +                "type": "object"
      +              },
      +              "createdAt": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "input": {
      +                "type": "string"
      +              },
      +              "media": {
      +                "items": {
      +                  "additionalProperties": true,
      +                  "type": "object"
      +                },
      +                "type": "array"
      +              },
      +              "quote": {
      +                "additionalProperties": true,
      +                "type": [
      +                  "object",
      +                  "null"
      +                ]
      +              },
      +              "replies": {
      +                "properties": {
      +                  "available": {
      +                    "const": false
      +                  },
      +                  "count": {
      +                    "type": [
      +                      "number",
      +                      "null"
      +                    ]
      +                  },
      +                  "reason": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "available"
      +                ],
      +                "type": "object"
      +              },
      +              "text": {
      +                "type": "string"
      +              },
      +              "threadOf": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "type": {
      +                "const": "post"
      +              },
      +              "url": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "id",
      +              "url",
      +              "text",
      +              "author",
      +              "counts",
      +              "replies",
      +              "input"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": true,
      +            "properties": {
      +              "code": {
      +                "type": "string"
      +              },
      +              "input": {
      +                "type": "string"
      +              },
      +              "message": {
      +                "type": "string"
      +              },
      +              "postId": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              },
      +              "retryable": {
      +                "type": "boolean"
      +              },
      +              "status": {
      +                "type": [
      +                  "number",
      +                  "null"
      +                ]
      +              },
      +              "type": {
      +                "const": "error"
      +              }
      +            },
      +            "required": [
      +              "type",
      +              "input",
      +              "code",
      +              "message",
      +              "retryable"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "results",
      +    "cache"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare read-only/idempotent/open-world, but the description adds substantial operational context: the sole upstream call is publish.x.com/oembed, no login or key required, the 280-character truncation with trailing ellipsis, and that replies expose only the immediate parent and only when embedHtml is rendered with widgets.js. It also specifies failure behavior precisely — unembeddable posts return a type "error" row with code unavailable and never partial data — which is exactly the kind of detail structured fields cannot convey.

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?

Purpose and input form are front-loaded, and the enumeration of unsupported cases is efficient. The middle sentences are long run-ons that pack several constraints together, which slows parsing slightly, but no sentence is padding.

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 one-parameter read tool with an output schema, the description covers everything the agent needs: input forms, upstream source, no-auth requirement, truncation caveat, reply/parent limitation, and error semantics. Return-field enumeration partially duplicates the output schema, but that redundancy is harmless and clarifies what 'embedHtml' actually contains.

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% and the single 'posts' array already documents the link/id format with an example. The description confirms the input is one user-supplied link or numeric id, but adds no new syntax, normalization rules, or validation detail beyond the schema. Baseline 3 is appropriate when the schema carries the parameter burden.

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 ('Reads one public X (Twitter) post, a tweet') plus the accepted input forms (x.com/twitter.com link or post id). It also draws a hard boundary against adjacent capabilities (threads, timelines, search, profiles), so an agent can distinguish it from any other data_* sibling without opening the schema.

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 scopes the call to a single user-supplied link or id, names what the tool will not do (no media files, quoted post, counts, other replies, threads, timelines, search, profiles), and gives a concrete follow-up instruction: to read a parent post, call again with the parent's link and ask the user for it. That is when-to-use plus alternatives and exclusions in one place.

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.