Skip to main content
Glama

create_delivery

Create a new DoorDash delivery request by specifying pickup and dropoff details, contact information, and order value.

Instructions

Create a new delivery request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
external_delivery_idYesUnique identifier for the delivery
pickup_addressYesPickup address
pickup_business_nameNoBusiness name for pickup
pickup_phone_numberNoPhone number for pickup
pickup_instructionsNoSpecial instructions for pickup
dropoff_addressYesDropoff address
dropoff_business_nameNoBusiness name for dropoff
dropoff_phone_numberNoPhone number for dropoff
dropoff_instructionsNoSpecial instructions for dropoff
order_valueNoValue of the order in cents

Implementation Reference

  • index.js:68-88 (registration)
    Registration of the 'create_delivery' tool in the TOOLS array. Includes the tool name, description, input schema for validation, and handler function that delegates to DoorDashClient.createDelivery(args). This is the primary implementation point for the MCP tool in this codebase.
    { name: 'create_delivery', description: 'Create a new delivery request', inputSchema: { type: 'object', properties: { external_delivery_id: { type: 'string', description: 'Unique identifier for the delivery' }, pickup_address: { type: 'string', description: 'Pickup address' }, pickup_business_name: { type: 'string', description: 'Business name for pickup' }, pickup_phone_number: { type: 'string', description: 'Phone number for pickup' }, pickup_instructions: { type: 'string', description: 'Special instructions for pickup' }, dropoff_address: { type: 'string', description: 'Dropoff address' }, dropoff_business_name: { type: 'string', description: 'Business name for dropoff' }, dropoff_phone_number: { type: 'string', description: 'Phone number for dropoff' }, dropoff_instructions: { type: 'string', description: 'Special instructions for dropoff' }, order_value: { type: 'number', description: 'Value of the order in cents' }, }, required: ['external_delivery_id', 'pickup_address', 'dropoff_address'], }, handler: (client, args) => client.createDelivery(args), },
  • index.js:87-87 (handler)
    The specific handler function for 'create_delivery' which receives the DoorDash client and arguments, then calls client.createDelivery(args) to perform the actual API call.
    handler: (client, args) => client.createDelivery(args),
  • Input schema defining the parameters required for the create_delivery tool, used for validation in MCP.
    inputSchema: { type: 'object', properties: { external_delivery_id: { type: 'string', description: 'Unique identifier for the delivery' }, pickup_address: { type: 'string', description: 'Pickup address' }, pickup_business_name: { type: 'string', description: 'Business name for pickup' }, pickup_phone_number: { type: 'string', description: 'Phone number for pickup' }, pickup_instructions: { type: 'string', description: 'Special instructions for pickup' }, dropoff_address: { type: 'string', description: 'Dropoff address' }, dropoff_business_name: { type: 'string', description: 'Business name for dropoff' }, dropoff_phone_number: { type: 'string', description: 'Phone number for dropoff' }, dropoff_instructions: { type: 'string', description: 'Special instructions for dropoff' }, order_value: { type: 'number', description: 'Value of the order in cents' }, }, required: ['external_delivery_id', 'pickup_address', 'dropoff_address'], },

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