place_merchant_order
Place a food order with a restaurant, process mobile money payment, and notify the merchant via SMS.
Instructions
Place a food order directly with a restaurant merchant. Creates an order record in MongoDB, triggers MoMo payment collection from customer, and sends an order SMS dispatch to the merchant.
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": {
"restaurant_phone": "<restaurant_phone>",
"items": "<items>",
"customer_name": "<customer_name>",
"customer_phone": "<customer_phone>",
"delivery_address": "<delivery_address>",
"amount_ghc": "<amount_ghc>"
},
"name": "place_merchant_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| amount_ghc | Yes | ||
| customer_name | Yes | ||
| payment_phone | No | ||
| customer_phone | Yes | ||
| payment_network | No | MTN | |
| delivery_address | Yes | ||
| restaurant_phone | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||