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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"comment_id": "<comment_id>"
},
"name": "fc_delete_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | The ID of the comment to delete |
Implementation Reference
- src/tools/fluent-community.ts:452-459 (handler)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') }); - src/tools/fluent-community.ts:231-235 (registration)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 } },