Skip to main content
Glama

royal-mcp__wp_create_menu_item

Destructive

Create a menu item in a navigation menu. On a site with no menus, call wp_create_menu first to obtain a menu_id. Requires edit_theme_options capability. Undo deletes the item while it is unchanged. (site: demo.royalplugins.com) Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then.

Input Schema

NameRequiredDescriptionDefault
urlNoExternal URL (leave empty if linking to a post/page via object_id)
titleYes
targetNoLink target
menu_idYes
site_idNoSite to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com)
positionNoPosition in menu order (default: end)
object_idNoID of the post or term the item links to
parent_idNoParent menu item ID for nested items (0 = top level)
object_typeNocustom (default, needs url), any post type (post, page, product…) or any taxonomy (category, post_tag, product_cat…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: the edit_theme_options capability requirement, the undo behavior ('deletes the item while it is unchanged'), and the Royally approval gate where nothing changes until a person approves. These details are not present in the structured annotations and materially affect how an agent should plan the call.

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?

The description is front-loaded with the core action and then carries prerequisites, capability, undo, site, and approval details. It is appropriately sized, though the parenthetical site note and Royally sentence make it slightly dense.

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?

For a mutation tool with no output schema, the description covers the key safety and workflow context: capability requirement, menu prerequisite, undo behavior, and approval gating. It does not describe the return value, such as the created menu item ID, which would help follow-up calls.

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 description coverage is 78%, so most parameters are already documented in the schema. The description adds useful context that menu_id can be obtained via wp_create_menu, but it does not clarify the required title or menu_id parameters or the url/object_id linkage beyond what the schema already says.

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 states a specific verb and resource: 'Create a menu item in a navigation menu.' It also distinguishes the tool from wp_create_menu by explaining when to call wp_create_menu first to obtain a menu_id.

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

Usage Guidelines4/5

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

It gives clear preconditions and one explicit alternative: on a site with no menus, call wp_create_menu first, and the caller must have edit_theme_options capability. It does not explicitly contrast with wp_update_menu_item or wp_delete_menu_item, but the create semantics are clear.

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