MCPOutils MCP/Avis/request_review_reply_approval

request_review_reply_approval

Writereviews:write

Ask one or more of the client's portal users to approve drafted replies to reviews. Draft the replies first with reply_to_review draft=true (or pass `text` per review here). Get user ids from list_client_portal_users; only users who can see each review's location are accepted. They get one notification (in-app, and email from the agency's domain) a few minutes later; when one of them approves, the reply posts with exactly the text they approved, edits included. Returns a result per review. Use this when the person asks to send replies to the client for approval.

Paramètres
itemsobject[]obligatoire
Reviews to send, each { reviewId, text? }. Omit text to use the review's saved draft.
reviewIdstringfacultatif
Review id Accepts the database ID or public rev- ID. IDs must belong to the authenticated agency and permitted client.
textstringfacultatif
Reply text (optional)
clientUserIdsstring[]obligatoire
Portal user ids who may approve (first approval wins).
notestringfacultatif
Optional note shown to them with the request.
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "request_review_reply_approval",
    "arguments": {
      "items": [
        {}
      ],
      "clientUserIds": [
        "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.