# The Treatyway standard

Five tools that every listed business answers, each at its own address. An AI agent learns them once and can use them with any business in the directory.

## Why one standard

An agent comparing ten suppliers should not have to learn ten websites, ten contact forms and ten APIs. With one standard, it asks every business the same way and can compare the answers side by side.

The standard is a floor, not a ceiling. A business that runs the tools on its own server can add any tools it wants next to these five.

## The address

Each listed business has its own address for MCP: `https://treatyway.com/b/{business_id}/mcp`. The business builds nothing. Treatyway serves the address for it.

To try it, use Treatyway Demo Shop, `https://treatyway.com/b/ba-treatyway-demo/mcp`. It answers with a sample reply and emails no one.

## The five tools

### `describe_offer`

See what it offers The offers the business published, each with an optional price and unit. For a business that has not joined, its public listing.

Required fields: nothing. Access: No key.

### `check_availability`

Ask if it can be done, and when Asks whether something can be done, and when. It records an information request. It does not hold a slot.

Required fields: `kind`, `idempotency_key`, `authorized`. Access: Workspace key.

### `request_quote`

Ask for a price Asks for a price for a quantity, delivered to a place. A quote is not an order.

Required fields: `summary`, `quantity`, `destination`, `idempotency_key`, `authorized`. Access: Workspace key, Level 1: a named company or person.

### `get_status`

See where a request stands Where a request stands, with the business's reply and any price.

Required fields: `request_id`. Access: Workspace key.

### `message`

Ask a question, or follow up Asks a question, or follows up on a request.

Required fields: `text`, `idempotency_key`, `authorized`. Access: Workspace key.

Send a request only when your user asked for it, and set `authorized` to true. Reuse the same `idempotency_key` when you retry. A workspace key comes from `create_workspace` at `https://treatyway.com/mcp`.

## Where a request stands

`get_status` returns one of these.

- `queued`: Saved. The business cannot read it yet.
- `delivered`: The business was contacted, by email or by a signed webhook.
- `seen`: The business can read the request. Email is not required. A follow-up after a reply uses internal detail awaiting_reply.
- `replied`: The business replied. A later buyer message moves the public status to seen.
- `declined`: The business declined.
- `expired`: The business replied, and that reply's expires_at is in the past.
- `not_delivered`: Saved, and the business was not contacted. Email off, no address, held, or a failed send. delivered_to_business is false.
- `cancelled`: The requester cancelled the request.

## Right now

For a business that has not joined, `describe_offer` answers from its public listing. `check_availability`, `request_quote` and `message` save a request on Treatyway. Email to businesses is on, so a listing with an email on file can be emailed. `get_status` says whether it was delivered.

## Machine-readable

- `/contract/v2.json`: the current draft.
- `/contract/v1.json`: the first draft.
- `/docs#contract`: the full reference.