Skip to main content
Glama

mcp_assign_menu_location

Assigns a WordPress menu to a registered theme location, or unassigns it by setting menu_id to 0.

Instructions

Assign a menu to a registered theme location (see mcp_get_menu_locations); menu_id 0 unassigns

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "site": "<site>",
      "menu_id": "<menu_id>",
      "location": "<location>"
    },
    "name": "mcp_assign_menu_location"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
menu_idYesMenu ID (0 to unassign)
locationYesTheme location slug

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.14.0
    • addedInput schema / properties / menu_id / minimum
      Added value: +0
    • changedInput schema / properties / menu_id / type
      Previous value: -"number"New value: +"integer"
  2. Changed2 schema fields changedv3.4.0
    • addedInput schema / properties / site
      Added value: +{
      +  "description": "Site id (see list_sites)",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "menu_id",
      -  "location"
      -]New value: +[
      +  "site",
      +  "menu_id",
      +  "location"
      +]
  3. First observedv2.0.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the non-obvious dual behavior that menu_id 0 unassigns rather than assigns, but says nothing about overwriting an existing assignment, required capabilities, or whether the call replaces or appends.

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?

A single sentence with the core action front-loaded, the cross-reference in parentheses, and the unassign edge case last. No filler.

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 simple three-parameter mutation with a fully described schema and no output schema, the description covers the essentials plus the unassign case. The only real gap is what happens to a pre-existing assignment at the target location.

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 coverage is 100% and the schema already documents all three parameters, including '0 to unassign' for menu_id. The description repeats that fact rather than adding new meaning, so baseline 3 applies.

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?

States a specific verb ('Assign') and both resources ('a menu' to 'a registered theme location'), and the parenthetical points at mcp_get_menu_locations so the agent can separate the read-lookup sibling from this write action.

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?

Implies the prerequisite flow: look up the location slug via mcp_get_menu_locations first, then call this. Also flags the unassign case (menu_id 0). It does not state exclusions or what happens if the location already holds a menu, so it falls short of full when/when-not guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools