MCPOutils MCP/Avis/create_review_widget
create_review_widget
Writereviews:write
Create an embeddable review widget for a location. Location-scoped — requires clientId, locationId, name. Optional: minRating, sources, selectionMode (recent | highest | manual), dateWindow, count, includeInternal, layout (carousel | grid | wall), status (draft | published, default published). Use count_widget_matches first to preview how many reviews match.
Paramètres
clientIdstringobligatoire
The client's id (from list_clients).
locationIdstringobligatoire
The location's id (from list_locations).
namestringobligatoire
Widget name
minRatingnumberfacultatif
Minimum star rating (1–5)
sourcesstring[]facultatif
Marketplaces to pull from (empty = all)
selectionMode"recent" | "highest" | "manual"facultatif
recent | highest | manual
dateWindow"30d" | "90d" | "1y" | "all"facultatif
30d | 90d | 1y | all
countnumberfacultatif
Max reviews to show (default 10)
includeInternalbooleanfacultatif
Include first-party feedback
layout"carousel" | "grid" | "wall"facultatif
carousel | grid | wall
status"draft" | "published"facultatif
draft | published (default published)
Exemple de requête
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_review_widget",
"arguments": {
"clientId": "string",
"locationId": "string",
"name": "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.