Approve Comment
Approves a pending comment, given its comment ID, making it publicly visible.
| Property | Value |
|---|---|
| Ability slug | mosmcp/approve-comment |
| Wire tool name | mosmcp__approve-comment |
| Category | Comments (mosmcp-comments) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | moderate_comments |
| Minimum default role | Editor |
| Annotations | readOnly: false · destructive: false · 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
Approve comment 931.
Example request (json)
{
"jsonrpc": "2.0",
"id": 111,
"method": "tools/call",
"params": {
"name": "mosmcp__approve-comment",
"arguments": {
"input": {
"id": 931
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 111,
"result": {
"isError": false,
"structuredContent": {
"id": 931,
"success": true
}
}
}
Edge cases / errors
- No comment with that id → error mosmcp_comment_not_found.
- Comment is already approved → succeeds again with no change (idempotent).
- Works on a comment in any status, including spam or trash → it becomes approved and publicly visible.
- WordPress fails to update the status → its error is returned.
| << Previous | Next >> |
|---|---|
| Restore Revision | Count Comments |
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.