# Concepts

## Preview, apply and undo

A change usually starts with a preview. Your assistant shows you what will change and waits for your approval before applying it. The preview returns a changeset ID to use when applying that change.

Undo is available for 15 minutes when the change supports it. Some actions cannot be undone; check the preview. Floor actions such as check-in happen immediately and have their own undo tools.

See each tool's kind, inputs and outputs in the [tool reference](/docs/tools).

## Repeat a request safely

An idempotency key identifies one intended change. Use a unique key for a new change, and keep the same key and input when retrying it. Do not reuse the key for a different change.

## Errors

An MCP tool failure has `isError: true`. Its text content contains an `error` object with `code`, `message`, and optional `issues` with more detail. Read the message and issues before trying again.

Common codes:

| Code | Meaning |
| --- | --- |
| invalid_input | Check the supplied fields and any issues listed. |
| unauthorized | Sign in or connect again. |
| mfa_required | Complete two-factor authentication. |
| forbidden | Your role or this connection does not allow the action. |
| not_found | The requested item could not be found. |
| conflict | The change clashes with the current state. Read it again before retrying. |
| plan_required | The feature needs a different plan. |
| plan_limit | The organization has reached a plan limit. |
| rate_limited | Too many requests. Wait before retrying. |

Rate limiting can refuse a request before a tool runs. Other codes may describe a particular task's refusal.

## IDs

IDs carry a prefix for their type, such as `ses_…` for a session or `org_…` for an organization. Use the whole ID returned by a tool. A booking's short code is separate from its ID.

## Money

Money uses integer minor units and a currency. For example, 16900 CAD means CAD 169.00. Use the totals returned by Lokl, including fees and tax; do not calculate a party's total by multiplying a displayed per-person price.

## Times

Times come back in UTC (ISO 8601). Lokl shows them in the location's time zone. A session creation tool may ask for a local date and time; follow its field descriptions. “Tonight” means tonight at the venue.

## What your role can see

Your connected assistant has the same limits as your member access, narrowed by the connection or key. Some roles see guests' first names only, and amounts and financial reports are hidden when your access doesn't include them.

## Terminology

- **Product:** An experience offered at one or more locations, with sessions and ticket types.
- **Session:** One occurrence of a product at a location on a date and time.
- **Ticket type:** A priced choice within a booking mode, such as Standard or VIP.
- **Booking mode:** How a party books a product, such as individual seats or a group option with included seats.
- **Member:** A person with a role and access to work in an organization.
- **Customer:** A guest whose details and bookings belong to an organization.
- **Changeset:** A proposed change with its impact and an ID, ready for approval and apply.

The dashboard calls a product an “experience”.
