Skip to main content
Glama

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
NameRequiredDescriptionDefault
postsYesArray of post objects to create

Implementation Reference

  • 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') });
  • 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 } },
  • 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)
  • Inclusion of fluentCommunityHandlers (containing fc_bulk_create_posts handler) into the master toolHandlers object.
    ...fluentCommunityHandlers,

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