Skip to main content
Glama

Create a navigation menu

create_menu

Create an empty WordPress navigation menu and optionally assign it to theme locations for later customization.

Instructions

Create an empty navigation menu, optionally assigning it to one or more theme locations. Add entries afterwards with add_menu_item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesMenu name shown in wp-admin.
site_idNoWhich configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids.
auto_addNoAutomatically add new top-level pages to this menu.
locationsNoTheme location slugs to assign it to, e.g. ["primary"]. See list_menus for what the theme registers.
descriptionNoLonger descriptive text.
Behavior4/5

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

The description discloses that the menu is created empty and that locations can be assigned, which are behavioral details beyond the annotations. It does not mention return values or potential side effects beyond location assignment, but annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) are not contradicted, and the workflow hint adds value.

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 is two sentences long, front-loaded with the main purpose, and includes the pointer to add_menu_item. Every phrase contributes to clarity, with no redundant or filler content.

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

Completeness4/5

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

The tool has 5 parameters and no output schema, but the description covers the essential workflow: creating an empty menu and then adding items. It does not explicitly state the return value (e.g., menu ID), but the mention of adding entries afterwards implies that an identifier is produced for later use. Overall, it is sufficiently complete for an agent to use the tool correctly.

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?

The input schema already describes all 5 parameters with 100% coverage, so the description does not need to restate them. The mention of 'theme locations' mirrors the schema's 'locations' parameter, and the description adds no new parameter-specific guidance beyond what the schema provides.

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 clearly states the action ('Create') and the resource ('empty navigation menu'), and explicitly says it optionally assigns to theme locations. It distinguishes itself from add_menu_item by noting that entries are added afterwards, 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?

It directly instructs the user to use add_menu_item for adding entries, naming the appropriate next step. The phrase 'optionally assigning it to one or more theme locations' clarifies when locations are relevant, and the overall context implies that this tool is for creating new menus rather than updating or deleting them.

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/alokemajumder/wpxmcp'

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