# preview_oversell

Preview the per-night oversell a unit type would apply over a date range. Runs the same rule evaluation the distribution
pipeline uses and returns, per night, the availability, booked count, computed oversell and resulting rooms-to-sell.

<!-- INPUT_BLOCK_START -->

## Input

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `unitTypeId` | `string` | Yes | The ID of the unit type (multi-unit group) to preview |
| `from` | `string` | Yes | Start date of the preview range (inclusive), as an ISO8601 date (e.g. "2026-09-01") |
| `to` | `string` | Yes | End date of the preview range (inclusive), as an ISO8601 date (e.g. "2026-09-30") |

<!-- INPUT_BLOCK_END -->

<!-- OUTPUT_BLOCK_START -->

## Output

| Field | Type | Description |
| --- | --- | --- |
| `content` | `ContentItem[]` | Array of content items returned by the tool - [ContentItem](#contentitem) |
| `isError` | `boolean` | Whether the tool execution resulted in an error |

### ContentItem

| Field | Type | Description |
| --- | --- | --- |
| `type` | `'text'` | Content type (currently only 'text' is supported) |
| `text` | `string` | The text content to display |

<!-- OUTPUT_BLOCK_END -->
