Update Category Description


Changes the description of an existing post category. The name and slug are not affected. Pass an empty string to clear the description.

Property Value
Ability slug mosmcp/category-update-description
Wire tool name mosmcp__category-update-description
Category Categories (mosmcp-categories)
Plan Free

 

Required access

Requirement Value
Capability manage_categories
Minimum default role Editor
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 category to update.
description string Yes — The new description. May be an empty string to clear it.

 

Output schema

Field Type Required
id integer Yes
name string Yes
description string Yes
edit_url string

 

Example

Sample prompt
Set the description of the Recipes category to 'Tried-and-tested recipes from our bakers.'

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 66,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__category-update-description",
    "arguments": {
      "input": {
        "id": 23,
        "description": "Tried-and-tested recipes from our bakers."
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 66,
  "result": {
    "isError": false,
    "structuredContent": {
      "id": 23,
      "name": "Recipes",
      "description": "Tried-and-tested recipes from our bakers.",
      "edit_url": "https://example.com/wp-admin/term.php?taxonomy=category&tag_ID=23"
    }
  }
}

 

Edge cases / errors

  • id does not exist → refused with category_not_found.
  • description as an empty string clears it.
  • HTML tags are stripped (plain-text sanitizing); line breaks are kept.

 


<< Previous Next >>
Rename Category Update Category Slug

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.