Skip to main content
Glama

unfollow_user

Remove a user from your following list by deleting the follow record using its URI.

Instructions

Unfollow a user.

Args:
    ctx: MCP context
    follow_uri: URI of the follow record to delete

Returns:
    Status of the unfollow operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
follow_uriYes

Implementation Reference

  • The main handler function for the 'unfollow_user' tool. It is decorated with @mcp.tool(), which registers it as an MCP tool. The function calls bluesky_client.unfollow(follow_uri) to perform the unfollow operation.
    @mcp.tool()
    def unfollow_user(
        ctx: Context,
        follow_uri: str,
    ) -> Dict:
        """Unfollow a user.
    
        Args:
            ctx: MCP context
            follow_uri: URI of the follow record to delete
    
        Returns:
            Status of the unfollow operation
        """
        try:
            bluesky_client = get_authenticated_client(ctx)
    
            # The unfollow method returns a boolean
            success = bluesky_client.unfollow(follow_uri)
    
            if success:
                return {
                    "status": "success",
                    "message": "Successfully unfollowed user",
                }
            else:
                return {
                    "status": "error",
                    "message": "Failed to unfollow user",
                }
        except Exception as e:
            error_msg = f"Failed to unfollow user: {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