agentPickup
v0.7.4Lets AI agents buy from physical businesses: find, order, pay, and collect in person with a QR.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
find_shops Find pickup shops
Find agentPickup shops to order from: near a point (lat/lng), in a suburb or city (place), or selling something (query). Returns each shop's shop_url, pickup address, hours, whether it's open now, distance, and matching menu items.
| Parameter | Type | Description |
|---|---|---|
lat | number | Where the user is: latitude. Send with lng. |
limit | integer | |
lng | number | Where the user is: longitude. Send with lat. |
open_now | boolean | Only shops open now (shops without listed hours stay in). |
place | string | A suburb, street or city to match against shop addresses, e.g. "Surry Hills". |
query | string | What the user wants, e.g. "AA batteries", "flowers" or "sourdough". Leave out to list everything. |
radius_km | number | With lat/lng: how far to look. Default 10. |
get_shop See what a shop sells
What the shop sells (item ids and prices, with photos, dietary labels, allergens, what's sold out, and what's in stock where the shop's POS counts it), where to collect, and which payments it takes. In chat apps that show cards, the menu appears as a card with the photos.
| Parameter | Type | Description |
|---|---|---|
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
ask_about_shop Ask about a shop
Answer a question about a shop that its menu doesn't: dietary needs and allergies (gluten-free, vegan, nuts), reviews, opening hours, where it is, parking, wait times, prices. Use it whenever the user asks something like that about a shop. Send the question in a few words, without names or other personal details. It answers from what the shop has said, says plainly what the shop hasn't, and tells the shop which topics people ask about (never the question itself).
| Parameter | Type | Description |
|---|---|---|
question * | string | The question in a few words, e.g. "gluten-free options?" or "is there parking?" |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
create_pickup_order Order for pickup
Create an order to collect in person. Returns the order id, total and a claim (keep it); pay it with pay_order. The shop emails the pickup pass to `email` once it's paid, and where the chat shows cards the order shows as one that becomes the pass. Where the shop takes cards, `payment: "card"` returns a checkout link for the user to pay on instead.
| Parameter | Type | Description |
|---|---|---|
email * | string | The user's email. The pickup pass goes here too. |
items * | array | |
dietary_note | string | The user's dietary needs for the shop, in their words (an allergy, an intolerance), where get_shop says it takes dietary notes. Only what the user said; leave it out if they said nothing. |
name | string | Name for the order, shown to staff |
payment | string | Who pays: agent (USDC over x402, or a test payment at a test shop), card (the user pays on a checkout link), or test (where the shop takes test payments: the whole flow with no money moving). Default:… |
pickup_at | string | When the user wants to collect, if not as soon as possible: a time in the shop's own time zone (get_shop gives its local time) like "17:30" or "5:30pm" (today, or tomorrow once it has passed), or an I… |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
pay_order Pay for an order
Get the payment details for an order made with create_pickup_order. No wallet is set up in this server, so it pays nothing: for an x402 order it returns the USDC price and pay link for another x402 client to pay; for a card order, the checkout link for the user to pay on.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order id create_pickup_order returned, like "ord_7HkQ2mXc9aRt". |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
order_status Check an order
Check where an order is up to, when the user asks if it's paid or ready, or before telling them to go and collect. Returns its status (waiting for payment, paid, being made, ready to collect, collected, expired or cancelled), and the checkout link while it's unpaid. Works with the order id alone. With the claim, a paid order's pass comes back as well and the chat's order card updates. When the user only wants their QR or pickup code again, use get_pickup_pass instead.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order id create_pickup_order returned, like "ord_7HkQ2mXc9aRt". |
claim | string | The claim create_pickup_order returned with the order. With it, a paid order's pass comes back too. |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
set_dietary_note Add a dietary note
Add or change the dietary note on an order before it's paid (an allergy, an intolerance, in the user's words), at a shop that takes dietary notes. An empty note removes it. The order's card shows it within a few seconds. Once the order is paid it's with the shop already: the user tells staff at the counter instead.
| Parameter | Type | Description |
|---|---|---|
claim * | string | The claim create_pickup_order returned with the order. |
note * | string | The note, only what the user said. Empty to remove it. |
order_id * | string | |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
cancel_pickup_order Cancel an order
Cancel a pickup order when the user asks, with the claim create_pickup_order returned. An unpaid order just closes. A paid one can be cancelled until the shop starts making it, and what was paid goes back the way it was paid (a card refund can take a few business days to show). Once the shop has started it, or it's ready, the user asks staff at the counter instead.
| Parameter | Type | Description |
|---|---|---|
claim * | string | The claim create_pickup_order returned with the order. |
order_id * | string | |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
get_pickup_pass Get the pickup pass
Get the pickup pass again for a paid order, when the user asks for their QR, pickup code or pass link (lost the email, closed the card). Returns the pass link, the six-character pickup code and the QR, shown as the pass card. Needs the claim create_pickup_order returned. An unpaid order has no pass yet: to see where an order is up to, use order_status instead.
| Parameter | Type | Description |
|---|---|---|
order_id * | string | The order id create_pickup_order returned, like "ord_7HkQ2mXc9aRt". |
claim | string | The claim create_pickup_order returned with the order. With it, a paid order's pass comes back too. |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
start_group_order Start a group order
Start a group order (a team lunch, an office order) at a shop, when the user wants to order together with others now. Returns a code to share: each person's agent joins with it and pays for their own items. When it closes, the shop gets one combined order and the organiser is emailed its pickup QR. To share agentPickup itself with a friend, use share_agentpickup instead.
| Parameter | Type | Description |
|---|---|---|
organiser_email * | string | Where the group's pickup QR goes |
organiser_name * | string | Who collects, shown to staff |
closes_in_minutes | integer | Default 15 |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
title | string | e.g. "Friday team lunch" |
join_group_order Join a group order
Add the user's items to a group order with its code. Returns the order id; pay it with pay_order before the group closes. The organiser collects everything, so the user gets a receipt, not a QR.
| Parameter | Type | Description |
|---|---|---|
code * | string | The group's code |
email * | string | The user's email, for their receipt |
items * | array | |
name * | string | The user's name, shown to staff on their items |
dietary_note | string | The user's dietary needs for the shop, in their words (an allergy, an intolerance), where get_shop says it takes dietary notes. Only what the user said; leave it out if they said nothing. |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
group_order_status Check a group order
Check a group order by its code, when the user asks who's in, what's been ordered or whether it has closed. Returns each person's name, items and whether they've paid, the total paid so far, when it closes, and, once it has closed, the status of the shop's combined order (paid, ready or collected). Anyone with the code can check it; it changes nothing. To add the user's own items, use join_group_order; to close it early as the organiser, use close_group_order.
| Parameter | Type | Description |
|---|---|---|
code * | string | The group order's code, from start_group_order or as the organiser shared it. |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |
close_group_order Close a group order now
Close a group order early, as its organiser. Unpaid shares are left out; the shop gets the rest as one order.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
organiser_key * | string | |
shop_url | string | An agentPickup shop's URL, as find_shops returns it. Defaults to https://agentpickup.app. |