Skip to main content
Glama

delete_post

Remove posts from Bluesky Social by providing the post URI. This tool allows authenticated users to delete their own content.

Instructions

Delete a post created by the authenticated user.

Args:
    ctx: MCP context
    uri: URI of the post to delete

Returns:
    Status of the delete operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYes

Implementation Reference

  • The main handler function for the 'delete_post' tool. It is registered via the @mcp.tool() decorator and implements the logic to delete a Bluesky post using the authenticated client given its URI.
    @mcp.tool()
    def delete_post(
        ctx: Context,
        uri: str,
    ) -> Dict:
        """Delete a post created by the authenticated user.
    
        Args:
            ctx: MCP context
            uri: URI of the post to delete
    
        Returns:
            Status of the delete operation
        """
        try:
            bluesky_client = get_authenticated_client(ctx)
            # Delete the post
            bluesky_client.delete_post(uri)
    
            return {
                "status": "success",
                "message": "Post deleted successfully",
            }
        except Exception as e:
            error_msg = f"Failed to delete post: {str(e)}"
            return {"status": "error", "message": error_msg}

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/gwbischof/bluesky-social-mcp'

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