Skip to main content
Glama
ArsNovaSingers

ars-nova-wordpress-mcp

Official

Update Menu Item

wp_update_menu_item
Idempotent

Update a single menu item in place—rename, repoint, re-nest, or reorder—without rebuilding the menu, preserving IDs and avoiding orphaned rows.

Instructions

Update a single existing menu item IN PLACE — rename it, repoint it, re-nest it, or reorder it — without rebuilding the menu. Only the fields you pass are changed. Requires admin.

Prefer this over wp_build_menu for small edits. Rebuilding a menu regenerates EVERY item ID, which breaks anything referencing them and leaves orphaned rows behind; this changes one row.

Args:

  • item_id (number): Menu-item ID to update (from wp_list_menu_items). Required.

  • title (string): New label.

  • page_id (number): Repoint at this page ID. Mutually exclusive with url.

  • url (string): Repoint at this custom URL. Mutually exclusive with page_id.

  • parent (number): New parent item ID. 0 = top level.

  • menu_order (number): New position within its level.

  • target (enum): '' (same tab) | '_blank' (new tab).

  • description (string), attr_title (string), classes (string[]).

  • response_format (enum): markdown | json.

Returns: the updated menu item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoRepoint at this custom URL (sets type=custom). Mutually exclusive with page_id.
titleNoNew label shown in the menu.
parentNoNew parent menu-item ID for submenu nesting. 0 = top level.
targetNoLink target: '_blank' opens in a new tab, '' opens in the same tab.
classesNoCSS classes applied to the menu item.
item_idYesMenu-item ID to update (from wp_list_menu_items).
page_idNoRepoint at this page ID (sets type=post_type, object=page). Mutually exclusive with url.
attr_titleNoHTML title attribute for the link.
menu_orderNoNew position within its level (ascending).
descriptionNoMenu-item description (rendered by some themes).
response_formatNoOutput format: 'markdown' for human-readable, 'json' for machine-readable.markdown
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses partial-update semantics ('Only the fields you pass are changed'), permission requirements ('Requires admin'), and the return value ('Returns: the updated menu item'). It also contrasts with the destructive effects of rebuilding, providing rich behavioral context that aligns with the idempotent and non-destructive hints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description opens with a clear purpose sentence, follows with a concise paragraph explaining when to use the tool, and lists parameters compactly (combining multiple fields into one line). Every sentence adds value without redundancy, making it well-structured and appropriately sized.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 11 parameters and no output schema, the description still covers all essential context: purpose, usage guidance, permissions, partial update behavior, parameter list, and return value. It compensates for the missing output schema by explicitly stating what is returned, making it complete enough for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema has 100% coverage with detailed descriptions for all 11 parameters. The description's Args block largely mirrors schema descriptions (e.g., mutual exclusivity, 0 = top level, item_id source) without adding new meaning. Since schema coverage is high, the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'Update' with the resource 'a single existing menu item' and narrows scope with 'IN PLACE', listing exact operations (rename, repoint, re-nest, reorder). It also distinguishes itself from the sibling tool wp_build_menu by warning against rebuilding, making the tool's specific role unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool over an alternative: 'Prefer this over wp_build_menu for small edits.' It explains why rebuilding is problematic (regenerates EVERY item ID, breaks references, leaves orphaned rows) and adds a prerequisite ('Requires admin'). This is a clear, actionable usage guideline.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ArsNovaSingers/ars-nova-wordpress-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server