# Send a message to one dealership

`messages_send` sends the message shown by `messages_preview` to the one dealership on one row of a request. It reaches a real dealership and cannot be undone.

## Who can use it

A connected assistant with the `dealers:message` permission, on an account that holds the messaging grant. Most accounts do not: for them these tools are not listed. Sign in with OAuth. See [Authentication](https://docs.ridekick.com/authentication.md).

## Arguments

| Argument | Type | Required | Meaning |
| --- | --- | --- | --- |
| `dealSetId` | string | Yes | The id of the request. |
| `rowKey` | string | Yes | The row key of the one dealership. |
| `text` | string | Yes | The message text. It must be the text that was previewed. |
| `previewToken` | string | Yes | The `previewToken` that `messages_preview` returned for this exact text, this row and this key. |
| `idempotencyKey` | string | Yes | The same key as the preview. |
| `askId` | string | No | The `askId` of the dealership's question this message answers, from a message in `messages_list` that carries one. Leave it out if the message answers no question. The preview and the send take the same `askId`. |


## What it returns

The answer for the send. A call repeated with the same `idempotencyKey` returns the first answer and sends no second message.

## Errors

Errors return `isError: true` and an `error.code`. See [Errors](https://docs.ridekick.com/errors.md). A missing, expired or revoked token, or an account without access, gets JSON-RPC error `-32001`.

## Example

A `tools/call` request to https://www.ridekick.com/api/mcp:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "messages_send",
    "arguments": {
      "dealSetId": "9b2f7a3e-5c1d-4e8a-8f60-1d2c3b4a5e6f",
      "rowKey": "4c1e9a70-2b3d-4f5a-9c88-7e6d5c4b3a21",
      "text": "Is this car still available this week?",
      "previewToken": "<from messages_preview>",
      "idempotencyKey": "msg-001"
    }
  }
}
```


## Related

[Preview a message](https://docs.ridekick.com/mcp/messages-preview.md), [Read a dealership's messages](https://docs.ridekick.com/mcp/messages-list.md).
