wp_spam_comment
Mark a WordPress comment as spam by comment ID, optionally targeting a specific site in multi-site setups, to remove unwanted replies.
Instructions
Marks a comment as spam.
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": {
"id": "<id>"
},
"name": "wp_spam_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the comment to mark as spam. | |
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. |