# Hermoso: set_sms_opt_out: Add or remove · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/set_sms_opt_out/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / set_sms_opt_out

# `set_sms_opt_out`

Add or remove an opt-out

Area: PHONE / SMS / VOICE · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Put a phone number on the brand's opt-out list (action add, the default) or take it off (action remove). The list is applied to sends when set_sms_settings has optOutList on. Free. Needs Hermoso phone on (activate_phone_service) or Twilio or Telnyx connected (Connectors, or connect_connector).

## Parameters

Parameter Type Description

`phone` required `string`

`action` `"add" | "remove"`

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/set_sms_opt_out`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_sms_opt_out","arguments":{"phone":"<string>"}}}`
**CLI**

`hermoso call set_sms_opt_out --json '{"phone":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [set_sms_settings](https://hermoso.ai/docs/reference/publish/set_sms_settings/) SMS sending settings
- [activate_phone_service](https://hermoso.ai/docs/reference/publish/activate_phone_service/) Turn on Hermoso phone
- [connect_connector](https://hermoso.ai/docs/reference/workspace/connect_connector/) Connect a paste-a-key account
- [remove_sms_consent](https://hermoso.ai/docs/reference/publish/remove_sms_consent/) Remove an SMS consent record
- [list_provider_opt_outs](https://hermoso.ai/docs/reference/publish/list_provider_opt_outs/) List the provider's opt-outs
- [list_sms_consents](https://hermoso.ai/docs/reference/publish/list_sms_consents/) List SMS consent and opt-outs
- [sms_registration_status](https://hermoso.ai/docs/reference/publish/sms_registration_status/) 10DLC and toll-free status
- [record_sms_consent](https://hermoso.ai/docs/reference/publish/record_sms_consent/) Record SMS consent
- [create_sms_registration_bundles](https://hermoso.ai/docs/reference/publish/create_sms_registration_bundles/) Build Twilio's 10DLC registration bundles
- [register_sms_brand](https://hermoso.ai/docs/reference/publish/register_sms_brand/) Register a 10DLC brand

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
