Amba

Friends

Friend requests, accept/reject, block/unblock, and friend lists.

The friends system lets users connect with each other through friend requests.

SDK usage

Send a friend request

const friendship = await client.friends.sendRequest('user_xxx');

Accept a request

await client.friends.accept('friendship_xxx');

Reject a request

await client.friends.reject('friendship_xxx');

Block/unblock

await client.friends.block('friendship_xxx');
await client.friends.unblock('friendship_xxx');

Get friends list

const friends = await client.friends.getAll();

Get pending requests

const pending = await client.friends.getPending();

Client API reference

MethodPathDescription
POST/client/friends/requestSend friend request
POST/client/friends/:id/acceptAccept request
POST/client/friends/:id/rejectReject request
POST/client/friends/:id/blockBlock user
POST/client/friends/:id/unblockUnblock user
GET/client/friendsList accepted friends
GET/client/friends/pendingList pending requests

MCP tools

ToolDescription
amba_get_friendship_statsGet friendship statistics (total, pending, accepted, blocked)

Database tables

TablePurpose
friendshipsFriendship records with requester, addressee, and status

On this page