Skip to main content
Glama

buddypress_update_activity

Modify existing activity content in a BuddyPress community by specifying the activity ID and new content. This tool helps maintain accurate and current community interactions through the BuddyPress REST API.

Instructions

Update an existing activity item

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesActivity ID
contentNoNew activity content

Implementation Reference

  • Handler logic for the buddypress_update_activity tool. It extracts the activity ID and the rest of the arguments as body, then sends a PUT request to the BuddyPress REST API endpoint `/activity/{id}` to update the activity.
    else if (name === 'buddypress_update_activity') { const { id, ...body } = args as any; result = await buddypressRequest(`/activity/${id}`, 'PUT', body); }
  • Input schema definition for the tool, specifying required 'id' parameter and optional 'content'.
    inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'Activity ID', required: true }, content: { type: 'string', description: 'New activity content' }, }, required: ['id'], },
  • src/index.ts:94-105 (registration)
    Tool registration in the tools array, which is returned by the ListTools handler. Includes name, description, and input schema.
    { name: 'buddypress_update_activity', description: 'Update an existing activity item', inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'Activity ID', required: true }, content: { type: 'string', description: 'New activity content' }, }, required: ['id'], }, },

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