buddypress_create_group
Create new BuddyPress groups with customizable settings including name, description, status, and forum options to build online communities.
Instructions
Create a new group
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Group name | |
| description | No | Group description | |
| status | No | Group status (public, private, hidden) | |
| enable_forum | No | Enable group forum | |
| creator_id | No | Creator user ID (default: current user) |
Implementation Reference
- src/index.ts:611-613 (handler)Executes the buddypress_create_group tool by making a POST request to the BuddyPress REST API /groups endpoint using the provided input arguments.else if (name === 'buddypress_create_group') { result = await buddypressRequest('/groups', 'POST', args); }
- src/index.ts:211-223 (schema)Defines the tool metadata including name, description, and input schema for validating parameters when creating a BuddyPress group.name: 'buddypress_create_group', description: 'Create a new group', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Group name', required: true }, description: { type: 'string', description: 'Group description' }, status: { type: 'string', description: 'Group status (public, private, hidden)' }, enable_forum: { type: 'boolean', description: 'Enable group forum' }, creator_id: { type: 'number', description: 'Creator user ID (default: current user)' }, }, required: ['name'], },
- src/index.ts:528-530 (registration)Registers the ListTools handler which returns the array of all tools including buddypress_create_group.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });