Skip to main content
Glama

buddypress_list_messages

Retrieve and display message threads from BuddyPress user inboxes, sent items, or notifications with filtering by read status and pagination controls.

Instructions

List message threads

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boxNoMessage box (inbox, sentbox, notices)
pageNoPage number (default: 1)
per_pageNoItems per page (default: 20)
typeNoMessage type (all, read, unread)
user_idNoUser ID to get messages for

Implementation Reference

  • Handler logic for the buddypress_list_messages tool. Constructs URL query parameters from input arguments (user_id, box, type, page, per_page) and makes an authenticated GET request to the BuddyPress /messages endpoint using the shared buddypressRequest helper.
    else if (name === 'buddypress_list_messages') { const params = new URLSearchParams(); if (args.user_id) params.append('user_id', String(args.user_id)); if (args.box) params.append('box', String(args.box)); if (args.type) params.append('type', String(args.type)); if (args.page) params.append('page', String(args.page)); if (args.per_page) params.append('per_page', String(args.per_page)); result = await buddypressRequest(`/messages?${params}`); }
  • Input schema definition for the buddypress_list_messages tool, specifying optional parameters for filtering and pagination of message threads.
    name: 'buddypress_list_messages', description: 'List message threads', inputSchema: { type: 'object', properties: { user_id: { type: 'number', description: 'User ID to get messages for' }, box: { type: 'string', description: 'Message box (inbox, sentbox, notices)' }, type: { type: 'string', description: 'Message type (all, read, unread)' }, page: { type: 'number', description: 'Page number (default: 1)' }, per_page: { type: 'number', description: 'Items per page (default: 20)' }, }, }, },

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