MCPOutils MCP/Clients/create_publisher_set

create_publisher_set

Writeclients:write

Create a new publisher set: a named bundle of listing directories the agency can then put clients on. Pass `name` (unique within the agency, case-insensitive) and `siteIds` — the numeric site ids from list_sites. An EMPTY siteIds array is allowed and means "exclude everything"; it is a real choice, not a shortcut for "all sites" — a client on an empty set is listed nowhere. A set can only contain directories the agency's own entitlement already includes: it narrows what the agency can offer, it can never widen it. Creating a set changes nothing on its own — no client is affected until assign_publisher_set puts one on it. Requires an identified agency user.

Paramètres
namestringobligatoire
The set's name, e.g. "Starter" or "Full Coverage". Must be unique within the agency.
siteIdsnumber[]obligatoire
The numeric site ids this set covers (from list_sites). Pass [] deliberately to exclude every directory — it is not a shorthand for "all".
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_publisher_set",
    "arguments": {
      "name": "string",
      "siteIds": [
        0
      ]
    }
  }
}
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.