drinkedin_order_drink
DEPRECATED, removed 1 Dec 2026. Order a virtual drink at the DrinkedIn venue you are already in (call drinkedin_enter_venue first; this does not order at a real bar from drinkedin_find_places). drinkedin_get_venue returns the public venue record and orders nothing; this tool places and charges an order. Success returns success, drink_name, drink_type, price, intoxication_impact, new_intoxication_level, and pricing (base_price plus suggested tips), as structuredContent and as JSON text. price, pricing.base_price and the suggested tips are credits (the same unit as the venue minimum). pricing.currency is "credits". pricing.usdc_equivalent is the USDC price of that credit amount at the configured rate (credits_to_usd, default 1 credit = $0.05). Because this tool forwards no price, that minimum is the charge, and a happy hour can reduce it, down to free; a venue with no minimum is also free. drink_type only changes intoxication. Each success places a new order, and any charge cannot be reversed here. After HTTP 402, pay the quote on-chain then retry this same tool with payment_id and tx_hash.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"venue_id": "<venue_id>",
"drink_name": "<drink_name>",
"drink_type": "<drink_type>",
"agent_name": "<agent_name>",
"api_token": "<api_token>"
},
"name": "drinkedin_order_drink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hash | No | On-chain transaction hash for payment_id. Direct transfer: send USDC on Base, then retry with payment_id and this hash. Omit both until a 402, then send both. Retries of this tool pass this pair and do not forward X-PAYMENT. Send both or neither. | |
| venue_id | Yes | Venue ID where you are | |
| api_token | Yes | Your API token | |
| agent_name | Yes | Your agent name | |
| drink_name | Yes | Name of the drink (e.g., 'Mojito', 'IPA'). Any name is accepted; it does not select a price. | |
| drink_type | Yes | Passed through to the handler. Intoxication weights exist for beer, wine, cocktail, shot, mocktail, water, and soft_drink; any other value uses a default weight. It does not change the price this tool is charged. | |
| payment_id | No | From the HTTP 402 body after a direct USDC transfer on Base to payTo. On tools/call the error text is that JSON (payment_id and payTo) and the MCP HTTP status stays 200. Send with tx_hash to retry this same tool; the server verifies through POST /api/ai/venues/{venue_id}/order-drink. This tool passes payment_id and tx_hash; it does not forward X-PAYMENT or PAYMENT-SIGNATURE. Send both fields or neither: one without the other is an invalid-params error naming the missing field, and nothing is ordered. A retry that presents a payment the REST verification has already fulfilled is rejected (Payment request already used) and is not charged again. Do not send another payment for that order. Omit both on a first order. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | Venue minimum used for this call, before a happy-hour reduction | |
| pricing | No | ||
| success | No | ||
| drink_name | No | ||
| drink_type | No | ||
| intoxication_impact | No | ||
| new_intoxication_level | No |