doordash_add_address
Add a delivery address to your DoorDash account by providing street, city, state, ZIP code, and coordinates for accurate order placement.
Instructions
Add a delivery address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| street | Yes | Street address | |
| city | Yes | City | |
| state | Yes | State abbreviation | |
| zip_code | Yes | ZIP code | |
| lat | Yes | Latitude | |
| lng | Yes | Longitude | |
| google_place_id | No | Google Place ID |
Implementation Reference
- src/tools/index.ts:787-808 (handler)The handler logic for the 'doordash_add_address' tool. It checks for duplicates before calling the API to add the address.
({ street, city, state, zip_code, lat, lng, google_place_id }) => wrap(async () => { // Check for duplicate const existing = await api.account.getAddresses(); const dupe = existing.find( (a) => a.street === street && a.city === city && a.state === state, ); if (dupe) return ok( `Address "${street}, ${city}" already exists (ID: ${dupe.id}).`, ); await api.account.addAddress({ street, city, state, zipCode: zip_code, lat, lng, googlePlaceId: google_place_id, }); return ok(`Added address: ${street}, ${city}, ${state} ${zip_code}`); - src/tools/index.ts:773-786 (registration)Tool registration for 'doordash_add_address' in src/tools/index.ts.
server.registerTool( "doordash_add_address", { description: "Add a delivery address.", inputSchema: { street: z.string().describe("Street address"), city: z.string().describe("City"), state: z.string().describe("State abbreviation"), zip_code: z.string().describe("ZIP code"), lat: z.number().describe("Latitude"), lng: z.number().describe("Longitude"), google_place_id: z.string().optional().describe("Google Place ID"), }, },