# Preview a request before sending it

`requests_preview` previews what `requests_submit` would send for a request. It contacts no dealership.

## Who can use it

A connected assistant with the `offers:read` permission, on any account that can send a request. A send always needs a preview first. Sign in with OAuth. See [Authentication](https://docs.ridekick.com/authentication.md).

## Arguments

| Argument | Type | Required | Meaning |
| --- | --- | --- | --- |
| `idempotencyKey` | string | Yes | A key you make up for this request. The preview token is sealed to it. |
| `zip` | string | Yes | The buyer's five-digit US ZIP code, as the buyer gave it. The request goes to dealerships near this ZIP. Do not guess it. |
| `configuration` | object | One of the two | The car the buyer asked about: `make`, `model`, `modelYear`, and optionally `trim`, `exteriorColor`, `interiorColor`, `drivetrain`, `powertrain`. Use only what the buyer told you; do not guess a field. |
| `listingId` | string | One of the two | A `listingId` from `see_cars_near_buyer`, or the reference after `Ridekick reference: ` in the buyer's message (such as `7K4M-2QPX`), for the car the buyer chose. Sent with `zip` and without `configuration`, `radiusMiles`, `limit` or `acceptFewer`. |
| `radiusMiles` | number | No | How far from the buyer's ZIP code to look for dealerships, in miles. |
| `limit` | integer | No | How many dealerships the buyer wants Ridekick to contact, at most 5. A larger number is refused, and the refusal names the limit and the maximum. |
| `acceptFewer` | boolean | No | False: if fewer dealerships match than the limit, nothing is sent and you are told. True: go ahead with fewer. |


## What it returns

The request as given, the next steps, and a `previewToken`. The token is valid for a short time, only for this exact request and this `idempotencyKey`.

For a new car on an account that was granted new-car requests, the preview has the grid shape: `upTo` is 5 and `radiusMiles` is 50. The request goes to the dealership that lists this car, unless it was not asked (the send answer's `tappedSkipped` says so), and up to four more within `radiusMiles` of the ZIP code. In a request to several dealerships, the others are asked about their own matching car. Every dealership asked gets any note you add. `upTo` is a limit, not a count: the preview does not search. For a used car, a match with no `condition`, or any other account, `upTo` is 1 and there is no `radiusMiles`: the request goes to the one dealership that lists the car. In test mode `upTo` is 1 and `testMode` is true. A preview token fits only the shape it was made for: a token for one dealership cannot send the grid, and a grid token cannot send to one dealership (409 `preview_mismatch`).

Each of the up to four more dealerships lists a new matching car, with a known distance inside `radiusMiles` of the ZIP code. A dealership that does not meet both is not asked.

## 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": "requests_preview",
    "arguments": {
      "idempotencyKey": "civic-2024-94103-001",
      "zip": "94103",
      "configuration": {
        "make": "Honda",
        "model": "Civic",
        "modelYear": 2024
      },
      "radiusMiles": 50,
      "limit": 5,
      "acceptFewer": false
    }
  }
}
```


## Related

[Send requests to dealerships](https://docs.ridekick.com/mcp/requests-submit.md).
