Mark Comment as Spam
Marks a comment as spam, given its comment ID.
| Property | Value |
|---|---|
| Ability slug | mosmcp/mark-comment-spam |
| Wire tool name | mosmcp__mark-comment-spam |
| Category | Comments (mosmcp-comments) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | moderate_comments |
| Minimum default role | Editor |
| Annotations | readOnly: false · destructive: true · idempotent: true · openWorld: true |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | The comment ID (required). |
Output schema
| Field | Type | Required |
|---|---|---|
| id | integer | Yes |
| success | boolean | Yes |
Example
Sample prompt
Mark comment 940 as spam.
Example request (json)
{
"jsonrpc": "2.0",
"id": 124,
"method": "tools/call",
"params": {
"name": "mosmcp__mark-comment-spam",
"arguments": {
"input": {
"id": 940
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 124,
"result": {
"isError": false,
"structuredContent": {
"id": 940,
"success": true
}
}
}
Edge cases / errors
- No comment with that id → error mosmcp_comment_not_found.
- WordPress refuses the change (e.g. a plugin blocks it) → error mosmcp_spam_failed.
- The comment's previous status is remembered, so mosmcp/unmark-comment-spam can restore it later.
| << Previous | Next >> |
|---|---|
| List Trashed Comments | Permanently Delete Comment |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.