MCPOutils MCP/Avis/hide_review_source
hide_review_source
Writereviews:write
Hide or unhide a review source from a location's review feed and analytics, without deleting its historical reviews. Pass an auto-detected platform slug (e.g. "google") with type "auto" to hide one of the automatically-pulled platforms, or a custom source's id (from validate_review_source's result, or the id returned by add_review_source) with type "custom".
Paramètres
locationIdstringobligatoire
The location whose source visibility you're changing (required, from list_locations). Accepts the database ID or public loc- ID. IDs must belong to the authenticated agency and permitted client.
keystringobligatoire
The auto platform slug (e.g. "google", "yelp") when type is "auto", or the custom source's id when type is "custom" (required).
type"auto" | "custom"obligatoire
Whether `key` is an auto platform slug or a custom source id (required).
hidebooleanobligatoire
true to hide, false to unhide (required).
Exemple de requête
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "hide_review_source",
"arguments": {
"locationId": "string",
"key": "string",
"type": "auto",
"hide": true
}
}
}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.