MCPOutils MCP/Avis/update_review_widget

update_review_widget

Writereviews:write

Edit an existing review widget in place: the same widget (same id, same embed URL) with new settings, so a site that already embeds it picks up the change. Pass widgetId (from list_review_widgets) and only the fields to change. Fields: name, minRating (1–5, or null for none), sources (marketplaces; empty = all), selectionMode (recent | highest | rotate | manual | ai), dateWindow (all | 6m | 12m), manualReviewIds, count (1–50), includeInternal, emojiPositiveRating (1–5), layout (carousel | marquee), marqueeSpeed (1–10), theme (brand | white | dark), themeOverrides, showFlags (avatar/date/rating/reply/sourceLogo/header/cta true|false), status (draft | published — draft stops it rendering publicly). At least one field is required; unknown or out-of-range values are rejected. Returns the updated widget. Use count_widget_matches to preview how many reviews a filter change matches.

Paramètres
widgetIdstringobligatoire
Review widget id (from list_review_widgets). Accepts the database ID or public wgt- ID. IDs must belong to the authenticated agency and permitted client.
namestringfacultatif
Widget name (1–120 characters).
minRatingfacultatif
Minimum star rating (1–5). Pass null to remove the minimum.
sourcesstring[]facultatif
Marketplaces to pull from (empty list = all).
selectionMode"recent" | "highest" | "rotate" | "manual" | "ai"facultatif
recent | highest | rotate | manual | ai
dateWindow"all" | "6m" | "12m"facultatif
all | 6m | 12m — how far back to pull reviews
manualReviewIdsstring[]facultatif
Review ids to show when selectionMode is manual.
countnumberfacultatif
Max reviews to show (1–50).
includeInternalbooleanfacultatif
Include first-party feedback.
emojiPositiveRatingnumberfacultatif
Star rating (1–5) a positive emoji response counts as.
layout"carousel" | "marquee"facultatif
carousel | marquee
marqueeSpeednumberfacultatif
Marquee scroll speed (1–10).
theme"brand" | "white" | "dark"facultatif
brand | white | dark
themeOverridesfacultatif
Theme token overrides; pass null to clear.
showFlagsfacultatif
Which parts to show; each of avatar, date, rating, reply, sourceLogo, header, cta is true or false. Pass null to reset to defaults.
status"draft" | "published"facultatif
draft | published
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_review_widget",
    "arguments": {
      "widgetId": "string"
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.