# quote_site_message

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

Works out what one text would cost before it is sent.

- Title: Price a text
- Scope: `config:read`
- Access: Read only

It gives the price the send form in the **Messages** tab shows. `credits` is null when the number or its country cannot be priced. `segments` is how many SMS parts the text takes, and an emoji or a character outside the plain SMS alphabet makes each part shorter. `contactFee` is true for the first text to that number this calendar month, which adds a small fee once. `includedCredits` is the part of the price the credits for texts the plan includes this calendar month cover, `included` is true when they cover all of it so the text costs the workspace nothing, and `includedLeft` is how many included credits are left. `planRequired` is true for a US number while the workspace is below Pro, which is refused. `registrationRequired` is true when the number's country needs the site registered with its carriers first, which is refused: `registrationKind` is `number` for a United States number, whose business registration `get_site_message_registration` covers, and `sender-name` for a country marked **Registration needed** in **Countries**. `countryUnavailable` is true for a country texts cannot go to, which is refused too. See [Prices and credits](https://modulify.ai/docs/built-in/messages#prices-and-credits).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |
| `template` | string | Yes | The template key, from `list_site_message_templates`. |
| `to` | string | Yes | The phone number in international format, such as `+14155551234`. |
| `variables` | object | No | The value of each placeholder, keyed by its name. `site` is filled with the site's name on its own. |
| `channel` | string | No | Always `sms`, the default: texts go out as SMS only. |