Skip to main content
Glama

mcp_update_widget

Update a WordPress widget's settings by merging provided keys into stored settings; unchanged keys remain intact.

Instructions

Update a widget's settings. The given keys are merged into the stored settings; keys not given are kept.

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>",
      "widget_id": "<widget_id>",
      "settings": "<settings>"
    },
    "name": "mcp_update_widget"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesSite id (see list_sites)
settingsYesSettings keys to change (merged into the existing settings)
widget_idYesWidget ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.14.0
    • changedInput schema / properties / settings / description
      Previous value: -"Settings to update"New value: +"Settings keys to change (merged into the existing settings)"
  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: -[
      -  "widget_id",
      -  "settings"
      -]New value: +[
      +  "site",
      +  "widget_id",
      +  "settings"
      +]
  3. First observedv2.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden, and it does deliver the single most important behavioral trait: unspecified keys are preserved rather than cleared, which prevents accidental data loss. It stops short of covering permissions/auth requirements, whether the tool is idempotent, what happens with an unknown widget_id, or how errors surface.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the core action front-loaded and the merge rule as an immediate follow-up; nothing is padded. The second clause is slightly redundant against the schema but is worth the tokens for a mutation tool.

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 three-parameter mutation tool with full schema coverage and no output schema, the definition covers the essential unknown (merge vs. replace). Remaining gaps — existence checks, error behavior, and auth — are modest given the tool's simplicity, though the absence of annotations means they are not covered elsewhere either.

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 the baseline is 3; site, widget_id, and settings are all documented inline. The description's merge wording largely restates what the settings schema already says ("merged into the existing settings"), so it adds little meaning beyond the structured data — though it usefully reinforces that partial payloads are acceptable for the free-form settings object.

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 ("Update a widget's settings") and immediately clarifies the mutation's semantics (merge rather than replace). It is clear what the tool does, but it never positions itself against siblings such as mcp_move_widget or mcp_add_widget, leaving the agent to infer that this is for in-place settings changes only.

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

Usage Guidelines3/5

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

The merge note implicitly tells the agent this is a partial update, so it need not send the full settings object — that is useful implied usage guidance. However, there is no explicit when-to-use or when-not guidance, no mention of prerequisites (e.g., the widget must already exist), and no named alternative for full replacement or for moving/removing a widget.

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