unfollow_user
Remove a user from your following list on Bluesky Social by specifying the follow record URI using this tool. Returns the status of the unfollow operation.
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
| Name | Required | Description | Default |
|---|---|---|---|
| follow_uri | Yes |
Implementation Reference
- server.py:771-804 (handler)The unfollow_user tool handler, registered via @mcp.tool() decorator. Executes unfollow by calling bluesky_client.unfollow(follow_uri) and returns success/error status.@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}