Skip to main content
Glama

Update Widget

update_widget
DestructiveIdempotent

Changes a widget; send only what changes. A refused call changes nothing. A social widget: its name, layout, settings (the names in get_widget's settings; list_widget_types gives each setting's allowed values), its accounts (all of them, in order: the first, of the widget's service, gives the header) and its campaign (for the "hashtag-campaign" filter; a widget that leaves its campaign needs its accounts in the same call). A review widget: its name, layout, settings and review sources. The site shows a change within a few minutes. embed_code_changed true (for example a new size of a widget with a fixed width and height) on a widget that is already on a site: give the user the new embed_code and the steps of get_embed_code to replace the code on the site.

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": {
      "widget_id": "<widget_id>"
    },
    "name": "update_widget"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe widget's name in the Widgets list.
layoutNoA new layout of the same kind. A social widget keeps its service and plan.
accountsNoSocial widget: all its account ids from list_accounts, in order, in place of the current ones.
settingsNoThe settings to change, as {name: value}, for example {"layoutx": 4, "layouty": 2, "name": "Home page feed"}.
widget_idYesThe widget's id (the id in list_widgets).
source_idsNoReview widget: all its review source ids from list_review_sources, in place of the current ones.
campaign_idNoSocial widget: one of the user's campaigns (list_campaigns), with the setting filter_type "hashtag-campaign".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: a refused call changes nothing, account replacement is positional and complete, campaign changes require accounts in the same call, and site changes take a few minutes to appear. It also discloses the user-facing follow-up when embed_code_changed is true, which is important for a destructive mutation.

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?

The core instruction is front-loaded and every sentence adds useful information. However, the social-widget sentence is a long run-on with nested parentheticals, making the type-specific rules harder to scan than necessary.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world update tool with no output schema, the description covers partial updates, per-type field applicability, replacement semantics, propagation delay, and embed-code follow-up. Nothing critical to invoking it correctly appears to be missing.

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

Parameters5/5

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

Although schema coverage is already 100%, the description adds cross-parameter meaning: settings names come from get_widget and allowed values from list_widget_types, accounts must be complete and ordered with the first account determining the header, and campaign changes require accounts in the same call. These constraints are not fully conveyed by the schema alone.

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?

The description states a specific mutation verb and resource, then distinguishes social and review widget update behavior. An agent can tell exactly what this tool changes and how it differs from create_widget, get_widget, and delete_widget.

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?

It clearly says to send only changed fields and gives type-specific guidance on what can be updated for social vs review widgets, plus when to give the user a new embed_code. It does not explicitly name alternative tools or when not to use this one, so it falls just short of full routing guidance.

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.