Skip to main content
Glama

List Menu Items

wp_list_menu_items
Read-only

List all items in a WordPress navigation menu. Returns item title, URL, type, parent, and order.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination
menu_idYesMenu ID to list items for
site_idNoSite ID to target (optional if you have only one connected site)
per_pageNoNumber to return (default 100)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / page
      Added value: +{
      +  "description": "Page number for pagination",
      +  "minimum": 1,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already establish the safety profile (readOnlyHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower. The description still adds value by disclosing the returned fields (title, URL, type, parent, order), which matters because there is no output schema. It omits pagination behavior and any rate-limit or volume caveats.

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 tight sentences with zero filler; scope is front-loaded and the return payload is appended where it is most useful. Nothing is redundant.

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?

With full schema coverage and no output schema, stating the return fields makes the definition largely self-sufficient. The remaining gap is operational: it never explains pagination behavior (page/per_page defaults) or how to obtain the required menu_id.

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%, so all four parameters (menu_id, site_id, page, per_page) are already documented in the schema. The description adds no parameter-level meaning beyond that, which is the expected baseline of 3 when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List all items in a WordPress navigation menu'), which clearly separates it from listing menus themselves (wp_list_menus) and from mutating tools like wp_add_menu_item. It does not explicitly name a sibling to contrast with, so it stops short of 5.

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

Usage Guidelines2/5

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

No when-to-use guidance, no alternatives, and no prerequisite noted (e.g. that menu_id must be obtained from wp_list_menus). The agent must infer that this is the reader for a single menu's contents.

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