Skip to main content
Glama

Create a menu

wp_create_menu

Create an empty navigation menu. Returns created and menu_id. A name another menu already has is refused by WordPress. Items are added by wp_add_menu_item; assigning the menu to a theme location is not part of this tool. Needs edit_theme_options. Forwarded by AlphaBridge Connect to the one site this connection reaches.

Input Schema

NameRequiredDescriptionDefault
nameYesMenu name. WordPress sanitises it like a term name (HTML is filtered); backslashes are kept.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / name / description
      Added value: +"Menu name. WordPress sanitises it like a term name (HTML is filtered); backslashes are kept."
  2. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing the uniqueness failure mode (duplicate names are refused by WordPress), the required capability, and the returned fields. Annotations already cover the mutation/safety profile; the remaining gap is that the error form (exception vs. structured error) is not described.

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?

Purpose and return values are front-loaded, and each sentence carries distinct information. The trailing AlphaBridge routing sentence is useful but slightly tangential to invocation and could be tightened.

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?

For a single-parameter creation tool with no output schema, the description supplies the return shape (created, menu_id), the failure mode, the needed capability, and the scope boundary. Nothing an agent needs in order to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100% and the schema already explains sanitisation and backslash handling, so the baseline is 3. The description adds real semantic value by stating the uniqueness constraint on the name field, which the schema does not mention.

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?

States a specific verb+resource ("Create an empty navigation menu") and immediately names the return values. The word "empty" plus the explicit hand-off to wp_add_menu_item distinguishes it cleanly from its menu siblings (wp_list_menus, wp_get_menu, wp_add_menu_item, wp_delete_menu_item).

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?

Explicitly routes follow-up work: items go through wp_add_menu_item, and theme-location assignment is declared out of scope for this tool. A precondition (edit_theme_options) is stated up front, so the agent knows what must be true before calling.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources