fc_list_space_members
View and filter members in a FluentCommunity space by status to manage community participation and monitor user activity.
Instructions
List members of a specific space
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_id | Yes | The space ID to list members from | |
| status | No | Filter by member status | |
| limit | No | Number of members to return |
Implementation Reference
- src/tools/fluent-community.ts:462-475 (handler)Handler function for fc_list_space_members tool. Makes a GET request to the WordPress REST API endpoint fc-manager/v1/spaces/{space_id}/members with optional parameters for status and limit, returns JSON response or error.fc_list_space_members: async (args: any) => { try { const params: any = { per_page: args.limit || 50, }; if (args.status) params.status = args.status; const response = await makeWordPressRequest('GET', `fc-manager/v1/spaces/${args.space_id}/members`, params); 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 for fc_list_space_members tool defining parameters: space_id (required), status (optional enum), limit (optional number).const listSpaceMembersSchema = z.object({ space_id: z.number().describe('The space ID to list members from'), status: z.enum(['active', 'pending', 'banned']).optional().describe('Filter by member status'), limit: z.number().optional().default(50).describe('Number of members to return') });
- src/tools/fluent-community.ts:238-242 (registration)Registration of fc_list_space_members tool in the fluentCommunityTools array, including name, description, and reference to the input schema.{ name: 'fc_list_space_members', description: 'List members of a specific FluentCommunity space', inputSchema: { type: 'object', properties: listSpaceMembersSchema.shape } },