fc_bulk_create_posts
Create multiple WordPress community posts simultaneously to manage AI-generated content campaigns with scheduled publishing options.
Instructions
Create multiple posts at once (useful for AI-generated content campaigns)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | Yes | Array of post objects to create |
Implementation Reference
- src/tools/fluent-community.ts:534-541 (handler)The main handler function for the fc_bulk_create_posts tool. It extracts the posts array from input args and performs a bulk POST request to the WordPress REST API endpoint 'fc-manager/v1/posts/bulk', returning the response or error.fc_bulk_create_posts: async (args: any) => { try { const response = await makeWordPressRequest('POST', 'fc-manager/v1/posts/bulk', { posts: args.posts }); 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_bulk_create_posts defining the structure: an object with 'posts' array, each post having space_id (number), user_id (number), title/message/type/status (strings, optional except message).const bulkCreatePostsSchema = z.object({ posts: z.array(z.object({ space_id: z.number(), user_id: z.number(), title: z.string().optional(), message: z.string(), type: z.string().optional(), status: z.string().optional() })).describe('Array of post objects to create') });
- src/tools/fluent-community.ts:267-271 (registration)Tool registration definition in fluentCommunityTools array, specifying name, description, and inputSchema (referencing the Zod schema). This array is later spread into allTools and registered in the MCP server.{ name: 'fc_bulk_create_posts', description: 'Create multiple FluentCommunity posts at once (useful for AI-generated content campaigns)', inputSchema: { type: 'object', properties: bulkCreatePostsSchema.shape } },
- src/tools/index.ts:29-29 (registration)Inclusion of fluentCommunityTools (containing fc_bulk_create_posts) into the master allTools array, which is used for MCP server registration....fluentCommunityTools, // 21 tools (FluentCommunity spaces, posts, members)
- src/tools/index.ts:49-49 (registration)Inclusion of fluentCommunityHandlers (containing fc_bulk_create_posts handler) into the master toolHandlers object....fluentCommunityHandlers,