Skip to main content
Glama

fc_delete_comment

Remove unwanted or inappropriate comments from your FluentCommunity platform by specifying the comment ID to maintain clean discussions and community standards.

Instructions

Delete a comment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
comment_idYesThe ID of the comment to delete

Implementation Reference

  • The main handler function that executes the fc_delete_comment tool by sending a DELETE request to the WordPress fc-manager API endpoint for comments.
    fc_delete_comment: async (args: any) => {
      try {
        const response = await makeWordPressRequest('DELETE', `fc-manager/v1/comments/${args.comment_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 schema defining the input validation for the fc_delete_comment tool, requiring a comment_id number.
    const deleteCommentSchema = z.object({
      comment_id: z.number().describe('The ID of the comment to delete')
    });
  • Registration of the fc_delete_comment tool in the fluentCommunityTools array, including name, description, and reference to input schema.
    {
      name: 'fc_delete_comment',
      description: 'Delete a FluentCommunity comment',
      inputSchema: { type: 'object', properties: deleteCommentSchema.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