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, the standard way AI agents call tools: 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
| Tool | What it does | Required | Access |
|---|---|---|---|
describe_offerSee 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. | Nothing | No key |
check_availabilityAsk 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. | kind, idempotency_key, authorized | Workspace key |
request_quoteAsk for a price | Asks for a price for a quantity, delivered to a place. A quote is not an order. | summary, quantity, destination, idempotency_key, authorized | Workspace key, Level 1: a named company or person |
get_statusSee where a request stands | Where a request stands, with the business's reply and any price. | request_id | Workspace key |
messageAsk a question, or follow up | Asks a question, or follows up on a request. | text, idempotency_key, authorized | 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, so the business never gets the same request twice. A workspace key comes from create_workspace at https://treatyway.com/mcp. Each business decides who may ask and what they may ask for, and every workspace has daily limits.
Where a request stands
get_status returns one of these.
| Status | Meaning |
|---|---|
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.
Add your own
The five tools are the floor, not the ceiling. There are two ways to go further.
On Treatyway, free. Claim your listing, then publish up to 20 offers with their prices. describe_offer returns them to every agent. You can also choose who may ask and what, read and answer requests, and send them to your own system with a signed webhook.
Your assistant can do it for you. Connect Claude, ChatGPT or any assistant that speaks MCP to https://treatyway.com/mcp/seller, sign in, and tell it what you sell. It publishes your offers with update_channel and answers requests with reply.
On your own server. Run the same five tools, under the same names and inputs, and add any tools you like next to them. Treatyway does not call a business's own server yet. Sign in with Treatyway, coming next, will let your server know which checked company an agent works for.
Machine-readable
- contract/v2.json: the current draft, with the five tools and the request statuses.
- contract/v1.json: the first draft. It still holds the tools a business uses to read and answer requests.
- The full reference in the API docs.
Tell us what is missing
The standard is a draft, and it should follow what agents and businesses actually need. Write to charles@treatyway.com, or have your agent call tell_treatyway.