Skip to main content
Glama

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
NameRequiredDescriptionDefault
external_delivery_idYesThe delivery ID to accept
tipNoThe tip amount in cents (e.g. $5.99 = 599)
dropoff_phone_numberNoPhone number for Dasher to call for dropoff issues (E.164 format)

Implementation Reference

  • 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);
    },
  • 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);
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amannm/doordash-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server