Skip to main content
Glama

unlike_post

Remove a like from a post on Bluesky Social by providing the like URI to undo previous engagement.

Instructions

Unlike a previously liked post.

Args:
    ctx: MCP context
    like_uri: URI of the like.

Returns:
    Status of the unlike operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
like_uriYes

Implementation Reference

  • Full implementation of the unlike_post tool handler. The @mcp.tool() decorator registers it with FastMCP. Takes a like_uri parameter and calls the Bluesky client's unlike method, returning success or error status.
    @mcp.tool()
    def unlike_post(
        ctx: Context,
        like_uri: str,
    ) -> Dict:
        """Unlike a previously liked post.
    
        Args:
            ctx: MCP context
            like_uri: URI of the like.
    
        Returns:
            Status of the unlike operation
        """
        try:
            bluesky_client = get_authenticated_client(ctx)
            bluesky_client.unlike(like_uri)
            return {
                "status": "success",
                "message": "Post unliked successfully",
            }
        except Exception as e:
            error_msg = f"Failed to unlike 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