Skip to main content
Glama

mcp_reorder_widgets

Set the exact widget order for a WordPress sidebar by passing the complete widget ID list; omitted widgets are removed from that sidebar while their settings remain.

Instructions

Set the widget order of a sidebar. Pass the COMPLETE list: widgets of the sidebar left out are removed from it (their settings stay, but they end up in no sidebar, not even Inactive Widgets).

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>",
      "sidebar_id": "<sidebar_id>",
      "widget_ids": "<widget_ids>"
    },
    "name": "mcp_reorder_widgets"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
sidebar_idYesSidebar ID
widget_idsYesAll widget IDs of the sidebar in the new order (each must already be in this sidebar)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.14.0
    • changedInput schema / properties / widget_ids / description
      Previous value: -"Ordered list of widget IDs"New value: +"All widget IDs of the sidebar in the new order (each must already be in this sidebar)"
  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: -[
      -  "sidebar_id",
      -  "widget_ids"
      -]New value: +[
      +  "site",
      +  "sidebar_id",
      +  "widget_ids"
      +]
  3. First observedv2.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does so well for the critical behavior: widgets omitted from the list are removed from the sidebar but keep their settings, ending in no sidebar at all. That is a genuinely important destructive side effect stated up front. Permission requirements and return behavior are still unstated.

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 sentences with no filler. The core action comes first, and the destructive caveat follows immediately after.

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?

This is a three-parameter mutation tool with no annotations and no output schema. The description covers the action, the complete-list requirement, and the main side effect, leaving only permission and return-value information out, which is a small gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so a 3 would be the baseline. The description goes further by explaining the semantic consequence of an incomplete widget_ids array, which the schema's "All widget IDs" wording only hints at.

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?

The description uses a specific verb and resource ("Set the widget order of a sidebar") and so is immediately distinguishable from the read-only mcp_get_sidebar_widgets. The sibling differentiation is implied by the verb rather than stated, so this is not quite a 5.

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 instruction "Pass the COMPLETE list" makes the calling contract explicit and tells the agent exactly how to use the tool. There is no statement of when not to use it or which alternative to call instead, which keeps this below a 5.

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