get_tweet_details
Retrieve comprehensive details of a specific tweet by providing its unique ID, enabling insights into content, engagement, and metadata on the X (Twitter) MCP server.
Instructions
Get detailed information about a specific tweet
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tweet_id | Yes |
Implementation Reference
- src/x_twitter_mcp/server.py:232-240 (handler)The main handler function that executes the get_tweet_details tool. It initializes the Twitter client and fetches the tweet details using client.get_tweet with specified fields.async def get_tweet_details(tweet_id: str) -> Dict: """Fetches tweet details. Args: tweet_id (str): The ID of the tweet to fetch. """ client, _ = initialize_twitter_clients() tweet = client.get_tweet(id=tweet_id, tweet_fields=["id", "text", "created_at", "author_id"]) return tweet.data
- src/x_twitter_mcp/server.py:231-231 (registration)The FastMCP decorator that registers the get_tweet_details tool, defining its name and description.@server.tool(name="get_tweet_details", description="Get detailed information about a specific tweet")