accept_delivery_quote
Accept a delivery quote for DoorDash orders and optionally add a tip for the Dasher.
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)Handler function that destructures the arguments and calls the DoorDash client's deliveryQuoteAccept method to accept the delivery quote.handler: (client, args) => { const { external_delivery_id, ...acceptArgs } = args; return client.deliveryQuoteAccept(external_delivery_id, acceptArgs); },
- index.js:116-124 (schema)Input schema for the accept_delivery_quote tool defining the required external_delivery_id and optional tip and dropoff_phone_number.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)Full tool registration entry in the TOOLS array, including name, description, schema, and handler for accept_delivery_quote.{ 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); }, },