MCP

blacklist/post_domains

Tool: create

Add one or more domains to the blacklist.

Accepts domains with or without an @ prefix. Returns no ids — to delete a domain later, use blacklist/get_domains to retrieve the blockIds.

Domain format is validated up front — malformed entries are rejected with per-item errors before anything is added. Fix and resubmit them.

Scoped, not global. This adds to the blacklist of the scope the call targeted (the organization, or a workspace/clientspace when arguments.workspaceId/clientspaceId was set) — see blacklist for the scope model. It does not suppress the domain in any other scope; add it there too if needed.

Body

field type req constraints description
domains array Array of domain strings to blacklist.

Response

200/201 — {added, domains[]}: added counts rows actually created (domain-covered/duplicate entries are echoed but not re-added). No ids returned — use blacklist/get_domains for blockIds.

Errors: 400, 401, 406, 409, 415, 422, 429, 500 — shared schema: schemas/errors.

Invoke

Call create with name: "blacklist/post_domains".