Skip to main content
Glama

Delete a navigation menu

delete_menu
Destructive

Delete a navigation menu and all its items in WordPress; theme locations fall back to defaults. Confirmation required.

Instructions

Delete a navigation menu and all of its items. Any theme location it filled falls back to the theme's default output. Requires confirm: true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe menu ID to delete.
confirmNoRequired — menus and their items cannot be recovered.
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.
Behavior4/5

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

Annotations already include destructiveHint: true and readOnlyHint: false, establishing the safety profile. The description adds valuable behavioral context: it explicitly states that the menu AND all its items are deleted, and that the theme location falls back to default output. It also emphasizes the confirm requirement, which is a significant operational nuance. However, it does not mention any auth/role requirements or what happens on success/failure, which would be reasonable given the destructive nature.

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 with no fluff. The core action is front-loaded ('Delete a navigation menu and all of its items.'), and the behavioral consequence (theme location fallback) plus the critical requirement (confirm) follow immediately. Every word earns its place; there is no extraneous detail.

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 deletion tool with three parameters and no output schema, the description covers the main consequences (cascade deletion, theme fallback) and the required confirm flag. It doesn't explicitly discuss return behavior or error handling, but those are often non-critical for delete operations. Given the annotations already carry the safety hints, the description is reasonably complete for an agent to decide whether and how to call it.

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 provides 100% coverage of all three parameters (id, confirm, site_id), including descriptions and the confirm's irreversibility warning. The description's only parameter-related mention is 'Requires confirm: true,' which is redundant with the schema's 'Required — menus and their items cannot be recovered.' Since the schema does the heavy lifting, the description adds little value beyond what's already structured.

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 the action explicitly: 'Delete a navigation menu and all of its items.' This covers the verb, resource, and scope (menu + items). It also mentions the theme location fallback, which adds context. The sibling delete_menu_item exists, but this description clearly targets the whole menu, so it is distinguishable without further detail.

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 description does not provide explicit guidance on when to use this tool versus alternatives such as delete_menu_item. It does mention 'Requires confirm: true,' which is an operational requirement, and the behavioral note about theme location fallback gives context. However, there is no explicit 'when to use / when not to use' statement, and no mention of alternative tools. The deletion intent is clear from the purpose, so some usage context is implied.

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