MCPMCP Tools/Listings/resolve_duplicate_listing

resolve_duplicate_listing

Writelistings:write

Resolve duplicate listings for a location (from get_duplicate_listings). Pass the duplicate listing id(s) and an action: "flag" requests the publisher remove the duplicate (marks it for removal — a background job then submits the removal to that directory), or "dismiss" marks them "not a duplicate" so they stop showing up. This acts on duplicates currently detected OR previously failed to suppress (a failed suppression can be retried via "flag"); ids already flagged/removed/dismissed (or not yours) are returned in `skipped`. Returns { updated, skipped }. You don't pass an agency — it comes from your credentials.

Parameters
duplicateListingIdsstring[]required
The duplicate listing id(s) to resolve (from get_duplicate_listings).
action"flag" | "dismiss"required
"flag" (request removal from the publisher) or "dismiss" (mark not a duplicate).
clientIdstringoptional
Optional: narrow to a single client for extra safety (from list_clients).
Example request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "resolve_duplicate_listing",
    "arguments": {
      "duplicateListingIds": [
        "string"
      ],
      "action": "flag"
    }
  }
}
Example response
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Response shape shown for illustration — the actual content depends on the tool and your data.