⚠️ Block users
messenger_post_blacklist_v2Add users to your Avito blacklist to block them from messaging. Provide user IDs and optional context (item ID, reason).
Instructions
Adds one or more users to the account's BLACKLIST. WARNING: a blocked user will no longer be able to message you in the messenger; this changes the live account — confirm with the user. Accepts an array of users with a user_id and an optional context (item_id and reason). reason_id: 1=spam, 2=fraud, 3=insults and rudeness, 4=other reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| users | Yes | List of users to block (at least one), each as { user_id, context? }. | |
| user_id | No | Avito account ID that maintains the blacklist. Defaults to Profile_id from .env. | |
| dryRun | No | v0.7.0: if true — returns a preview of the HTTP request without calling the Avito API. Safe for inspecting exactly what would be done. Default: the value of AVITO_MCP_DRY_RUN_DEFAULT (usually false). | |
| idempotencyKey | No | v0.7.0: optional key for duplicate protection. A repeat call with the same key within AVITO_MCP_IDEMPOTENCY_TTL_SEC returns the cached result. The same key with different args returns a conflict error — this is safe by design. |