Skip to main content
Glama

fc_bulk_delete_posts

Remove multiple posts simultaneously from your FluentCommunity platform by specifying post IDs to manage content efficiently.

Instructions

Delete multiple posts at once

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idsYesArray of post IDs to delete

Implementation Reference

  • The core handler function for the fc_bulk_delete_posts tool. It sends a POST request to the WordPress REST API endpoint '/fc-manager/v1/posts/bulk-delete' with the array of post_ids from the input args, and returns the response or an error message.
    fc_bulk_delete_posts: async (args: any) => { try { const response = await makeWordPressRequest('POST', 'fc-manager/v1/posts/bulk-delete', { post_ids: args.post_ids }); 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 validation for the tool: an object containing 'post_ids' as an array of numbers.
    const bulkDeletePostsSchema = z.object({ post_ids: z.array(z.number()).describe('Array of post IDs to delete') });
  • Tool registration entry in the fluentCommunityTools array, specifying the tool's name, description, and input schema.
    { name: 'fc_bulk_delete_posts', description: 'Delete multiple FluentCommunity posts at once', inputSchema: { type: 'object', properties: bulkDeletePostsSchema.shape } },
  • Top-level aggregation of all tools in src/tools/index.ts, spreading fluentCommunityTools which includes fc_bulk_delete_posts.
    ...fluentCommunityTools, // 21 tools (FluentCommunity spaces, posts, members)

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