Delete Tag
Deletes a post tag. The posts using it are NOT deleted — they simply lose the tag. Requires confirm=true.
| Property | Value |
|---|---|
| Ability slug | mosmcp/tag-delete |
| Wire tool name | mosmcp__tag-delete |
| Category | Tags (mosmcp-tags) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | manage_categories |
| Minimum default role | Editor |
| Annotations | readOnly: false · destructive: true · idempotent: true · openWorld: true |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer (min 1) | Yes | — | The ID of the tag to delete. |
| confirm | boolean | Yes | — | Must be true to confirm the deletion. |
Output schema
| Field | Type | Required |
|---|---|---|
| id | integer | Yes |
| name | string | Yes |
| deleted | boolean | Yes |
Example
Sample prompt
Delete the 'test' tag.
Example request (json)
{
"jsonrpc": "2.0",
"id": 69,
"method": "tools/call",
"params": {
"name": "mosmcp__tag-delete",
"arguments": {
"input": {
"id": 44,
"confirm": true
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 69,
"result": {
"isError": false,
"structuredContent": {
"id": 44,
"name": "test",
"deleted": true
}
}
}
Edge cases / errors
- confirm is not exactly true → refused with confirmation_required.
- id does not exist → refused with tag_not_found.
- Posts that used the tag are kept and simply lose it; WordPress failing to delete → delete_failed.
| << Previous | Next >> |
|---|---|
| Create Tag | Find Tag (ID by Name / Name by ID) |
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.