List Draft Posts


Lists all draft posts on the site, from every author, newest-modified first. Users who cannot edit others' posts only see their own drafts.

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

 

Required access

Requirement Value
Capability edit_posts
Minimum default role Contributor
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 drafts to return.
offset integer (min 0) 0 Number of drafts to skip, for fetching the next page.

 

Output schema

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

 

Example

Sample prompt
Which draft posts are waiting to be finished?

Example request (json)

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

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 11,
  "result": {
    "isError": false,
    "structuredContent": {
      "showing": 1,
      "total": 1,
      "drafts": [
        {
          "id": 44,
          "title": "Autumn Sale",
          "author_name": "Jane Doe",
          "excerpt": "Our biggest sale of the season starts soon.",
          "modified": "2026-09-28 11:30:00",
          "edit_url": "https://example.com/wp-admin/post.php?post=44&action=edit"
        }
      ]
    }
  }
}

 

Edge cases / errors

  • Users without edit_others_posts only see their own drafts.
  • Only posts are listed, not pages; excerpt is the manual excerpt or a 20-word preview.
  • per_page is capped at 100; use offset for further pages.

 


<< Previous Next >>
List All Posts List Own Drafts

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.