Skip to main content
Glama

fc_delete_post

Remove unwanted or outdated posts from your FluentCommunity platform by specifying the post ID. This tool helps maintain content quality and manage community discussions effectively.

Instructions

Delete a post from FluentCommunity

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idYesThe ID of the post to delete

Implementation Reference

  • The handler function for the fc_delete_post tool that executes a DELETE request to the WordPress API endpoint to delete the specified post.
    fc_delete_post: async (args: any) => { try { const response = await makeWordPressRequest('DELETE', `fc-manager/v1/posts/${args.post_id}`); 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 validation for the fc_delete_post tool, requiring a post_id.
    const deletePostSchema = z.object({ post_id: z.number().describe('The ID of the post to delete') });
  • Tool registration entry in the fluentCommunityTools array defining name, description, and input schema for fc_delete_post.
    { name: 'fc_delete_post', description: 'Delete a FluentCommunity post', inputSchema: { type: 'object', properties: deletePostSchema.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