List Posts with Tag
Lists the posts that carry a given tag, any status except trash, newest first. Returns at most per_page posts (default 20) plus the total.
| Property | Value |
|---|---|
| Ability slug | mosmcp/tag-list-posts |
| Wire tool name | mosmcp__tag-list-posts |
| Category | Tags (mosmcp-tags) |
| 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 |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | The ID of the tag. |
| 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 |
| tag_name | string | |
| posts | object[] | Yes |
| posts[].id | integer | Yes |
| posts[].title | string | Yes |
| posts[].status | string | Yes |
| posts[].date | string | |
| posts[].edit_url | string |
Example
Sample prompt
Which posts are tagged 'vegan'?
Example request (json)
{
"jsonrpc": "2.0",
"id": 73,
"method": "tools/call",
"params": {
"name": "mosmcp__tag-list-posts",
"arguments": {
"input": {
"id": 45
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 73,
"result": {
"isError": false,
"structuredContent": {
"showing": 1,
"total": 7,
"tag_name": "Vegan",
"posts": [
{
"id": 101,
"title": "Vegan Banana Bread",
"status": "publish",
"date": "2026-09-12 07:30:00",
"edit_url": "https://example.com/wp-admin/post.php?post=101&action=edit"
}
]
}
}
}
Edge cases / errors
- id does not exist → refused with tag_not_found.
- Includes every status except trash (published, draft, pending, scheduled, private), newest first.
- Users who cannot edit others' posts only see their own posts; per_page is capped at 100.
| << Previous | Next >> |
|---|---|
| List All Tags | List Unused Tags |
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.