Count Comments
Returns comment counts broken down by status: total, approved, pending, spam, and trash. Read-only.
| Property | Value |
|---|---|
| Ability slug | mosmcp/count-comments |
| Wire tool name | mosmcp__count-comments |
| Category | Comments (mosmcp-comments) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | moderate_comments |
| Minimum default role | Editor |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
Takes no input. Send "input": {} (or omit input).
Output schema
| Field | Type | Required |
|---|---|---|
| total | integer | Yes |
| approved | integer | Yes |
| pending | integer | Yes |
| spam | integer | Yes |
| trash | integer | Yes |
Example
Sample prompt
How many comments does my site have, and how many are waiting for moderation?
Example request (json)
{
"jsonrpc": "2.0",
"id": 112,
"method": "tools/call",
"params": {
"name": "mosmcp__count-comments",
"arguments": {
"input": {}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 112,
"result": {
"isError": false,
"structuredContent": {
"total": 1284,
"approved": 1190,
"pending": 12,
"spam": 82,
"trash": 9
}
}
}
Edge cases / errors
- total is WordPress's total-comments figure, which does not include trashed comments.
- pending is the number of comments held for moderation (WordPress's "awaiting moderation" count).
- Site with no comments → all counts are 0 (no error).
| << Previous | Next >> |
|---|---|
| Approve Comment | Get Comment by ID |
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.