Skip to main content
Glama

fc_bulk_update_posts

Update multiple posts simultaneously to modify status, privacy settings, or post type across your FluentCommunity WordPress site in one operation.

Instructions

Update multiple posts at once

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idsYesArray of post IDs to update
updatesYesFields to update on all posts

Implementation Reference

  • Handler function for fc_bulk_update_posts tool. Makes a POST request to the WordPress API endpoint 'fc-manager/v1/posts/bulk-update' with post_ids and updates.
    fc_bulk_update_posts: async (args: any) => { try { const response = await makeWordPressRequest('POST', 'fc-manager/v1/posts/bulk-update', { post_ids: args.post_ids, updates: args.updates, }); 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 schema defining the input parameters for the fc_bulk_update_posts tool: array of post IDs and update fields (status, privacy).
    const bulkUpdatePostsSchema = z.object({ post_ids: z.array(z.number()).describe('Array of post IDs to update'), updates: z.object({ status: z.string().optional(), privacy: z.string().optional() }).describe('Fields to update on all posts') });
  • Tool registration entry in the fluentCommunityTools array, specifying name, description, and input schema.
    { name: 'fc_bulk_update_posts', description: 'Update multiple FluentCommunity posts at once', inputSchema: { type: 'object', properties: bulkUpdatePostsSchema.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