accept_delivery_quote
Confirm a DoorDash delivery quote and optionally add a tip for the driver to proceed with the order.
Instructions
Accept a delivery quote and optionally add a tip
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| external_delivery_id | Yes | The delivery ID to accept | |
| tip | No | The tip amount in cents (e.g. $5.99 = 599) | |
| dropoff_phone_number | No | Phone number for Dasher to call for dropoff issues (E.164 format) |
Implementation Reference
- index.js:125-128 (handler)The handler function for accept_delivery_quote tool. It destructures the args to separate external_delivery_id and passes the rest to the DoorDash client's deliveryQuoteAccept method.handler: (client, args) => { const { external_delivery_id, ...acceptArgs } = args; return client.deliveryQuoteAccept(external_delivery_id, acceptArgs); },
- index.js:116-124 (schema)Input schema defining the parameters for the accept_delivery_quote tool.inputSchema: { type: 'object', properties: { external_delivery_id: { type: 'string', description: 'The delivery ID to accept' }, tip: { type: 'number', description: 'The tip amount in cents (e.g. $5.99 = 599)' }, dropoff_phone_number: { type: 'string', description: 'Phone number for Dasher to call for dropoff issues (E.164 format)' }, }, required: ['external_delivery_id'], },
- index.js:113-129 (registration)The complete tool registration object in the TOOLS array, which includes name, description, schema, and handler. This array is used for both listing tools and dispatching calls.{ name: 'accept_delivery_quote', description: 'Accept a delivery quote and optionally add a tip', inputSchema: { type: 'object', properties: { external_delivery_id: { type: 'string', description: 'The delivery ID to accept' }, tip: { type: 'number', description: 'The tip amount in cents (e.g. $5.99 = 599)' }, dropoff_phone_number: { type: 'string', description: 'Phone number for Dasher to call for dropoff issues (E.164 format)' }, }, required: ['external_delivery_id'], }, handler: (client, args) => { const { external_delivery_id, ...acceptArgs } = args; return client.deliveryQuoteAccept(external_delivery_id, acceptArgs); }, },