Skip to main content
Glama

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
NameRequiredDescriptionDefault
space_idYesThe space ID
user_idYesThe user ID to remove

Implementation Reference

  • 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')
    });
  • 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 }
    },

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/wplaunchify/fluent-community-mcp'

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