List Trashed Comments


Lists comments currently in the trash. Read-only.

Property Value
Ability slug mosmcp/list-trashed-comments
Wire tool name mosmcp__list-trashed-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

Field Type Required Default Description
page integer (min 1) 1 Page number, starting at 1.
per_page integer (1–100) 20 Comments per page (max 100).

 

Output schema

Field Type Required
comments object[] Yes
comments[].id integer Yes
comments[].post_id integer Yes
comments[].parent_id integer
comments[].author_name string
comments[].author_email string
comments[].author_url string
comments[].content string Yes
comments[].status string Yes
comments[].date string
page integer Yes
per_page integer Yes

 

Example

Sample prompt
What comments are currently in the trash?

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 123,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__list-trashed-comments",
    "arguments": {
      "input": {
        "page": 1,
        "per_page": 20
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 123,
  "result": {
    "isError": false,
    "structuredContent": {
      "comments": [
        {
          "id": 902,
          "post_id": 42,
          "parent_id": 0,
          "author_name": "Alex Kim",
          "author_email": "alex@example.net",
          "author_url": "",
          "content": "Off-topic remark",
          "status": "trash",
          "date": "2026-09-20 12:00:00"
        }
      ],
      "page": 1,
      "per_page": 20
    }
  }
}

 

Edge cases / errors

  • Trash is empty → empty comments array (no error).
  • Trashed comments are removed automatically by WordPress after its trash retention period, so older ones may no longer appear.
  • per_page capped at 100; a page past the end → empty comments.

 


<< Previous Next >>
List Spam Comments Mark Comment as Spam

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.