fc_remove_space_member
Remove a user from a FluentCommunity space by specifying the space ID and user ID to manage community membership effectively.
Instructions
Remove a user from a space
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | The space ID | |
| user_id | Yes | The user ID to remove |
Implementation Reference
- src/tools/fluent-community.ts:492-499 (handler)Handler function that executes the tool by sending a DELETE request to remove a user from a FluentCommunity space via WordPress API.fc_remove_space_member: async (args: any) => { try { const response = await makeWordPressRequest('DELETE', `fc-manager/v1/spaces/${args.space_id}/members/${args.user_id}`); return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } }; } catch (error: any) { return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } }; } },
- Zod input schema defining parameters for the fc_remove_space_member tool: space_id and user_id.const removeSpaceMemberSchema = z.object({ space_id: z.number().describe('The space ID'), user_id: z.number().describe('The user ID to remove') });
- src/tools/fluent-community.ts:248-252 (registration)Tool registration in the fluentCommunityTools array, defining name, description, and input schema.{ name: 'fc_remove_space_member', description: 'Remove a user from a FluentCommunity space', inputSchema: { type: 'object', properties: removeSpaceMemberSchema.shape } },