List Private Posts


Lists private posts, which are visible only to editors and administrators.

Property Value
Ability slug mosmcp/post-list-private
Wire tool name mosmcp__post-list-private
Category Posts (mosmcp-posts)
Plan Free

 

Required access

Requirement Value
Capability read_private_posts
Minimum default role Editor
Annotations readOnly: true · destructive: false · idempotent: true · openWorld: false

 

Input schema

Field Type Required Default Description
per_page integer (1–100) 20 Maximum number of posts to return.
offset integer (min 0) 0 Number of posts to skip, for fetching the next page.

 

Output schema

Field Type Required
showing integer Yes
total integer Yes
posts object[] Yes
posts[].id integer Yes
posts[].title string Yes
posts[].excerpt string
posts[].modified string Yes
posts[].edit_url string

 

Example

Sample prompt
List all the private posts on the site.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 14,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__post-list-private",
    "arguments": {
      "input": {}
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 14,
  "result": {
    "isError": false,
    "structuredContent": {
      "showing": 1,
      "total": 1,
      "posts": [
        {
          "id": 46,
          "title": "Internal Pricing Notes",
          "excerpt": "Draft pricing for next quarter.",
          "modified": "2026-09-26 09:40:00",
          "edit_url": "https://example.com/wp-admin/post.php?post=46&action=edit"
        }
      ]
    }
  }
}

 

Edge cases / errors

  • Requires read_private_posts (Editor or Administrator); lower roles are refused by the permission check.
  • Lists private posts from every author, newest-modified first.
  • per_page is capped at 100; use offset for more.

 


<< Previous Next >>
List Pending Posts List Published Posts

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.