customize_order
Submit special requests for existing orders to modify items or add instructions. Provide order ID and specific customization details.
Instructions
Make special requests for your order. Results may vary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The order ID to customize | |
| request | Yes | Your special request |
Implementation Reference
- index.js:350-380 (handler)Handler function for the "customize_order" tool.
async ({ order_id, request }) => { const order = orders.find((o) => o.id === order_id); if (!order) { return { content: [ { type: "text", text: `Order ${order_id} not found. Can't customize what doesn't exist. That's philosophy.`, }, ], }; } const responses = [ `Special request "${request}" has been noted. The line cook nodded solemnly.`, `"${request}" - Bold choice. We've alerted the tortilla whisperer.`, `Request received: "${request}". Our AI-powered burrito engineer is on it.`, `"${request}" - This has never been requested before. You are a pioneer.`, `We've forwarded "${request}" to our Chief Guacamole Officer for approval.`, ]; const response = responses[Math.floor(Math.random() * responses.length)]; return { content: [ { type: "text", text: `# Customization Request\n\n**Order:** ${order_id}\n**Request:** ${request}\n\n${response}\n\n> ${getRandomQuip()}`, }, ], }; - index.js:343-349 (registration)Registration of the "customize_order" tool with its schema definition.
server.tool( "customize_order", "Make special requests for your order. Results may vary.", { order_id: z.string().describe("The order ID to customize"), request: z.string().describe("Your special request"), },