# list_site_message_countries

Source: https://modulify.ai/docs/mcp/messages/list-site-message-countries

Lists every country Sent texts, with its code, its name, what one SMS part to it costs and whether the site may text it now.

- Title: Find the countries a site can text
- Scope: `config:read`
- Access: Read only

It is the same list as **Countries** on the **Settings** tab of the **Messages** tab, more than 230 countries. Each one has its ISO `code`, its English `name`, `credits`, what one SMS part to it costs, and `selected`, whether the site may text it now. The countries the site may text come first, then the rest by name.

`query` keeps the countries whose name or code holds every word of it, ignoring case and accents, so `port` finds Portugal and `PT` finds it by its code. `selectedOnly` true keeps only the countries the site may text. The answer also carries `selected`, the codes the site may text, `max`, how many countries the site's plan lets it pick, and `total`, how many countries Sent texts. Pick countries with `update_site_messages`. See [Countries](https://modulify.ai/docs/built-in/messages#countries).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |
| `query` | string | No | Words to find in the country name or code, such as port or PT. |
| `selectedOnly` | boolean | No | True to list only the countries the site may text. |