Skip to main content
Glama

Delete a menu item

delete_menu_item
Destructive

Remove a menu item while re-parenting its children to the top level instead of deleting them.

Instructions

Remove one item from a navigation menu. Its children are re-parented to the top level rather than deleted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe menu item ID.
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 declare destructiveHint=true, readOnlyHint=false, and idempotentHint=false, so the destructive nature is covered. The description adds valuable behavior beyond annotations: it discloses that children are re-parented to the top level rather than deleted. This is a non-obvious side effect that agents need to know. No contradiction with annotations.

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?

Two concise sentences, no filler. The core action is front-loaded, and the critical child-re-parenting behavior is stated immediately after. Every word earns its place.

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 simple 2-parameter tool with annotations covering the safety profile and full schema descriptions, the description is complete. It covers the key non-obvious behavior (child re-parenting) and needs no explanation of return values since there is no output schema. An agent has everything necessary to call it 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?

Schema description coverage is 100%, with both 'id' and 'site_id' having descriptions in the schema. The tool description adds no additional parameter-specific semantics beyond what the schema provides. According to the rubric, with high schema coverage, the baseline is 3, and no extra value is added here.

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 verb 'Remove' and the resource 'one item from a navigation menu', distinguishing it from broader tools like delete_menu (which removes an entire menu). It also adds a unique behavioral detail (re-parenting of children) that further clarifies what the tool does. This is specific and not a restatement of the name.

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?

The description gives clear context for when to use this tool (to delete a single menu item) but does not explicitly mention alternatives or when-not-to-use cases. However, the behavioral note about children being re-parented instead of deleted helps an agent decide if this is the right operation, especially compared to deleting the whole menu. There are no exclusions or alternative tools named, though the context is clear enough.

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