# Instant Delivery for AI agents

Instant Delivery brings a pickup order from any local store to your user's door, usually within the hour.
Over MCP you price the delivery, create the order, hand your user the payment link, and follow the driver.

## Connect

Streamable HTTP, with OAuth and PKCE. There is no API key: registration is open, so your client registers itself.

[MCP server][https://backend.instant.delivery/mcp]
[How to connect][https://www.instant.delivery/agents/mcp]

A call without a token answers 401, and its WWW-Authenticate header names the two discovery documents.

[Protected resource][https://backend.instant.delivery/.well-known/oauth-protected-resource]
[Authorization server][https://backend.instant.delivery/.well-known/oauth-authorization-server]

## Permissions

Ask for what you need and no more. Your user sees each one by name on the consent page.

[profile:read][Name, email, phone and city]
[profile:write][Change the profile]
[addresses:read][Saved addresses]
[addresses:write][Add and delete saved addresses]
[orders:read][Orders and how they are going]
[orders:write][Prices, orders, cancellations and payment links]

## Tools

Twelve, each acting for the signed-in user. The server hands you their inputs when you connect.

[get_delivery_estimate][Prices a pickup and a dropoff. Books nothing.]
[create_order][Makes the order from a chosen price. Unpaid, as DRAFT.]
[get_payment_link][The page where your user pays, which books it.]
[get_order_status][Live tracking once paid: driver, place, arrival.]
[cancel_order][Cancels it while REQUESTED, before a driver goes.]
[list_orders][The user's orders, newest first.]
[get_order_details][One order: status, addresses, driver, prices, times.]
[get_profile][Name, email, phone and city.]
[update_profile][Changes the profile. Send every field, not one.]
[list_addresses][The user's saved addresses.]
[add_address][Saves an address under HOME, WORK or OTHER.]
[delete_address][Removes a saved address.]

## Booking a delivery

1. get_delivery_estimate, and show your user the prices before you go on.
2. create_order with the price they chose. A price is good for one order, and it expires.
3. get_payment_link, and hand it over. You cannot pay for them.
4. get_order_status once they have paid, until it reads DELIVERED.

## Order status

[DRAFT](made, unpaid) -> [ASSIGNING](booking it) -> [REQUESTED](finding a driver) -> [STARTED](driver on the way to the store) -> [PICKEDUP](on the way to your user) -> [DELIVERED](at the door)

An order can also end as [CANCELLED](called off) or [FAILED](the delivery could not be made).

## Good to know

Accounts are invite-only for now. You cannot open one; a user without an account needs an invitation link from someone who has one.
Your user orders from the store and pays it directly. Instant Delivery only brings the order to them.
It is for everyday orders under $150, not for anything valuable.
The price is the delivery fee, tax and the service charge, with card processing over that and the tip.
Cancelling does not refund the card on its own. Tell your user so.
An error is a plain sentence, like "Price has expired, get prices again". Read it and change the request.

## More

[Human site][https://www.instant.delivery]
[Sign in][https://www.instant.delivery/oauth2/signin]
[This guide][https://www.instant.delivery/agents.md]
[Index for agents][https://www.instant.delivery/llms.txt]