Get Post
Gets the full details of a single post by its ID, including content, status, author, dates, categories and tags.
| Property | Value |
|---|---|
| Ability slug | mosmcp/post-get |
| Wire tool name | mosmcp__post-get |
| 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 |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | The ID of the post to retrieve. |
Output schema
| Field | Type | Required |
|---|---|---|
| id | integer | Yes |
| title | string | Yes |
| content | string | Yes |
| excerpt | string | |
| status | string | Yes |
| author_id | integer | |
| author_name | string | |
| created | string | |
| modified | string | |
| link | string | |
| edit_url | string | |
| categories | string[] | |
| tags | string[] |
Example
Sample prompt
Show me the full content of post 42.
Example request (json)
{
"jsonrpc": "2.0",
"id": 8,
"method": "tools/call",
"params": {
"name": "mosmcp__post-get",
"arguments": {
"input": {
"id": 42
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 8,
"result": {
"isError": false,
"structuredContent": {
"id": 42,
"title": "Pumpkin Soup",
"content": "<p>A warming autumn soup.</p>",
"excerpt": "A warming autumn soup.",
"status": "publish",
"author_id": 3,
"author_name": "Jane Doe",
"created": "2026-09-20 08:00:00",
"modified": "2026-09-25 14:12:09",
"link": "https://example.com/pumpkin-soup/",
"edit_url": "https://example.com/wp-admin/post.php?post=42&action=edit",
"categories": [
"Recipes"
],
"tags": [
"autumn",
"vegan"
]
}
}
}
Edge cases / errors
- id that is not a post → post_not_found.
- Post the caller may not read (e.g. someone else's draft for a Subscriber) → cannot_read_post.
- excerpt is the manual excerpt if set, otherwise an auto-generated 40-word preview of the content.
| << Previous | Next >> |
|---|---|
| Find Post (ID by Name / Name by ID) | Get Post Template And Display Settings |
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.