Skip to main content
Glama

buddypress_create_friendship

Send a friendship request between two users by specifying their user IDs to establish connections within a BuddyPress community.

Instructions

Create a friendship request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
initiator_idYesInitiator user ID
friend_idYesFriend user ID

Implementation Reference

  • src/index.ts:378-390 (registration)
    Registers the 'buddypress_create_friendship' tool in the tools array, including its description and input schema for creating a friendship request between two users.
    {
      name: 'buddypress_create_friendship',
      description: 'Create a friendship request',
      inputSchema: {
        type: 'object',
        properties: {
          initiator_id: { type: 'number', description: 'Initiator user ID', required: true },
          friend_id: { type: 'number', description: 'Friend user ID', required: true },
        },
        required: ['initiator_id', 'friend_id'],
      },
    },
    {
  • Executes the tool by sending a POST request to the BuddyPress REST API endpoint '/friends' with the input arguments (initiator_id and friend_id).
    else if (name === 'buddypress_create_friendship') {
      result = await buddypressRequest('/friends', 'POST', args);
    }

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/vapvarun/buddypress-mcp'

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