mcp_update_menu_item
Update a WordPress menu item by sending only fields to change while preserving all other settings; linked object changes require deleting and adding a new item.
Instructions
Partially update a menu item: only the given fields are sent and changed, every other stored field (type, linked object, url, ...) is kept (cvrt-mcp-endpoints 1.14.2+). The linked object (type/object/object_id) cannot be changed here: delete the item and add a new one. The response lists the changed fields.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"item_id": "<item_id>"
},
"name": "mcp_update_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Link URL. Only allowed on custom links; a page/term item answers 400 url_not_custom | |
| xfn | No | Link relationship (XFN rel values), space-separated, e.g. "nofollow noopener" | |
| site | Yes | Site id (see list_sites) | |
| title | No | Menu item label (empty string = follow the linked page's title) | |
| parent | No | Parent menu item ID (an item of the same menu; 0 = top level) | |
| status | No | publish = visible, draft = hidden from the menu | |
| target | No | Link target: "_blank" opens in a new tab, "" in the same tab | |
| classes | No | CSS classes, space- or comma-separated (replaces the stored list; empty string clears) | |
| item_id | Yes | Menu item ID | |
| position | No | Menu order position | |
| attr_title | No | Title attribute (tooltip) of the link | |
| description | No | Item description (shown by themes that render menu descriptions) |