List Published Posts
Lists published (publicly visible) posts, newest first.
| Property | Value |
|---|---|
| Ability slug | mosmcp/post-list-published |
| Wire tool name | mosmcp__post-list-published |
| Category | Posts (mosmcp-posts) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | read |
| Minimum default role | Subscriber |
| 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[].author_name | string | |
| posts[].excerpt | string | |
| posts[].date | string | Yes |
| posts[].link | string | Yes |
| posts[].edit_url | string |
Example
Sample prompt
What are my five most recent published posts?
Example request (json)
{
"jsonrpc": "2.0",
"id": 15,
"method": "tools/call",
"params": {
"name": "mosmcp__post-list-published",
"arguments": {
"input": {
"per_page": 5
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 15,
"result": {
"isError": false,
"structuredContent": {
"showing": 1,
"total": 38,
"posts": [
{
"id": 42,
"title": "Pumpkin Soup",
"author_name": "Jane Doe",
"excerpt": "A warming autumn soup.",
"date": "2026-09-20 08:00:00",
"link": "https://example.com/pumpkin-soup/",
"edit_url": "https://example.com/wp-admin/post.php?post=42&action=edit"
}
]
}
}
}
Edge cases / errors
- Sorted by publish date, newest first; private and scheduled posts are not included.
- Not limited to the caller's own posts — any user with read sees all published posts.
- per_page above 100 → rejected by the input schema; use offset to page.
| << Previous | Next >> |
|---|---|
| List Private Posts | List Scheduled 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.