Skip to main content
Glama
rafaljanicki

X (Twitter) MCP server

by rafaljanicki

delete_bookmark

Remove tweets from your saved bookmarks on X (Twitter) by specifying the tweet ID to declutter and organize your saved content.

Instructions

Removes the tweet from bookmarks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tweet_idYes

Implementation Reference

  • The main handler function for the 'delete_bookmark' tool. It checks rate limits, initializes the Twitter client, calls client.remove_bookmark to delete the bookmark for the given tweet_id, and returns a confirmation dictionary.
    async def delete_bookmark(tweet_id: str) -> Dict: """Removes a bookmark. Args: tweet_id (str): The ID of the tweet to remove from bookmarks. """ if not check_rate_limit("tweet_actions"): raise Exception("Tweet action rate limit exceeded") client, _ = initialize_twitter_clients() result = client.remove_bookmark(tweet_id=tweet_id) return {"tweet_id": tweet_id, "bookmarked": not result.data["bookmarked"]}
  • The FastMCP decorator that registers the delete_bookmark function as a tool named 'delete_bookmark' with the specified description.
    @server.tool(name="delete_bookmark", description="Removes the tweet from bookmarks")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rafaljanicki/x-twitter-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server