mcp_add_menu_item
Add an item to a WordPress menu by providing site, menu ID, and title, with optional URL, parent, position, or object type.
Instructions
Add an item to a menu
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>",
"menu_id": "<menu_id>",
"title": "<title>"
},
"name": "mcp_add_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL for custom links | |
| site | Yes | Site id (see list_sites) | |
| title | Yes | Menu item title | |
| object | No | Object type (page, product_cat, etc.) | |
| parent | No | Parent menu item ID | |
| menu_id | Yes | Menu ID | |
| position | No | Position in menu | |
| object_id | No | Object ID | |
| object_type | No | Item type | custom |