Remove Tag from Post
Removes a tag from a post by tag name. Other tags on the post are kept. The tag itself is not deleted from the site.
| Property | Value |
|---|---|
| Ability slug | mosmcp/post-remove-tag |
| Wire tool name | mosmcp__post-remove-tag |
| Category | Posts (mosmcp-posts) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_post (checked against the specific post) |
| Minimum default role | Contributor |
| Annotations | readOnly: false · destructive: false · idempotent: true · openWorld: true |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | The ID of the post. |
| tag | string (min length 1) | Yes | — | The name of the tag to remove from the post. |
Output schema
| Field | Type | Required |
|---|---|---|
| id | integer | Yes |
| title | string | Yes |
| tags | string[] | Yes |
Example
Sample prompt
Remove the 'draft-ideas' tag from post 42.
Example request (json)
{
"jsonrpc": "2.0",
"id": 21,
"method": "tools/call",
"params": {
"name": "mosmcp__post-remove-tag",
"arguments": {
"input": {
"id": 42,
"tag": "draft-ideas"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 21,
"result": {
"isError": false,
"structuredContent": {
"id": 42,
"title": "Pumpkin Soup",
"tags": [
"autumn"
]
}
}
}
Edge cases / errors
- No tag with that name exists on the site → tag_not_found.
- Tag exists but is not on this post → tag_not_on_post.
- Only the link to the post is removed; the tag stays on the site. Empty tag → missing_tag.
| << Previous | Next >> |
|---|---|
| Remove Category from Post | Restore Post from Trash |
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.