Governed ability

List navigations

aafm/list-navigationsRead only

List navigations is a governed ability in Agent Abilities for MCP, a free WordPress plugin that runs an MCP server on your site.

Lists the block-theme navigation menus (the wp_navigation posts a core/navigation block shows) by id, title and status, each with its links as a nested items tree of label, URL and children. Blocks the tree cannot show, such as a page list or a search box, are named under other_blocks. A classic menu is not listed here; use list-menus for those. Requires the edit-theme-options capability.

How it is governed

The same model as every ability in the plugin, stated for this one.

  • Off until you enable it

    Like every ability, List navigations ships switched off. You turn it on one at a time, and an update never switches on a tool it serves.

  • Reads only

    It reads data and returns it to your client. Nothing on your site is created, changed, or removed.

  • Capability gated

    A connection only sees List navigations if the user you connected can run it, and the plugin checks that capability again before it executes.

  • Every call audited

    The call is written to the log in your own database, denials included, with the argument keys and the identifiers it touched, never free-text content.

List navigations is one of the 11 governed Menus abilities. Browse the other Menus abilities in the catalog.

See it in action

An illustrative run. Your real calls and data stay on your own site.

agent-abilities · auditGoverned
YouList navigations on this site.
RunRunning aafm/list-navigations
GateAllowedread capability confirmed
Auditaafm/list-navigations · principal: editor · args: (none)
ResultReturns the data the agent asked for. Nothing on the site changes.

Try it with a prompt

Example requests you could paste to your agent.

  1. List the block-theme navigation menus on this site with their links.
  2. Show me the links in the header navigation, nested the way they appear.
  3. Which navigations contain blocks other than plain links?

These are illustrative example prompts. The agent runs them as the user you connected, checked against that user's capabilities and written to your audit log.

Frequently asked

Short answers for List navigations.

How is it different from List menus?

List navigations reads the block-theme navigations, the wp_navigation posts a core/navigation block shows, each with its links as a nested tree of label, URL and children. Classic menus are listed by List menus instead. Blocks the tree cannot show, such as a page list or a search box, are named under other_blocks.

What does it need?

The edit-theme-options capability. It only reads, it is off until you enable it, and every call is logged.

Back to all abilities

Governed by default, from the first call.

List navigations is off until you enable it, scoped to the user you connect, and logged like everything else. Turn on only what you need.

Every ability off until you enable it, capability-gated on every call.