Skip to main content
Glama

manage_menu

Destructive

Create, list, and update WordPress navigation menus: add pages, posts, or custom links, then assign the menu to a theme location.

Instructions

Manage navigation menus. Actions: list, create, add_item, assign_location. Add pages/posts/custom links to a menu and assign it to a theme location.

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": {
      "action": "<action>"
    },
    "name": "manage_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
menuNoMenu name or ID.
titleNo
actionYeslist
objectNomenu-item-object: page, post, custom, category.
locationNoTheme menu location slug.
object_idNoPost/page ID for a page/post menu item.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

B3.2/5.0
Behavior2/5

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

Annotations only declare destructiveHint=true; the description says nothing about what is actually destroyed or overwritten, whether create/add_item are idempotent on repeated calls, what permissions or capabilities are required, or what happens to an existing menu when assign_location runs. For a multi-action mutation tool this is a substantial gap, and the description surfaces no behavior beyond the annotation.

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

Conciseness4/5

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

Two short sentences with the resource named first and the action list immediately after, so the reader hits the operative information up front. Nothing is redundant, though 'Manage navigation menus' is slightly generic as an opener.

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

Completeness3/5

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

With seven parameters, a four-way action enum, and no output schema, the description covers the shape of the tool but not the action-dependent requirements (which parameters each action needs, what list returns). The destructive annotation is acknowledged only implicitly by the presence of create/add_item actions.

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 coverage is 57%, so roughly half the parameters are self-documented. The description adds meaningful semantics for the object/object_id/location cluster ('pages/posts/custom links', 'theme location'), but explains nothing about menu, title, or url, and does not tie any parameter to a specific action.

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

Purpose4/5

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

States a specific verb and resource ('Manage navigation menus') and then enumerates the four supported actions (list, create, add_item, assign_location). The resource is distinct enough from siblings like manage_option and manage_taxonomy, though it never explicitly contrasts itself with any of them.

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

Usage Guidelines3/5

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

The second sentence implies what each write action is for ('Add pages/posts/custom links to a menu and assign it to a theme location'), which gives loose per-action context. There is no explicit guidance on which action to choose for a given goal, no prerequisites, and no when-not-to-use conditions.

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