doordash_set_address
Set your active delivery address for DoorDash orders by providing the address ID from your saved addresses.
Instructions
Set the active delivery address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address_id | Yes | Address ID from doordash_addresses |
Implementation Reference
- src/tools/index.ts:812-828 (handler)Registration and handler logic for the 'doordash_set_address' tool. It calls the 'setDefaultAddress' method on the account API and returns a confirmation message.
server.registerTool( "doordash_set_address", { description: "Set the active delivery address.", inputSchema: { address_id: z.string().describe("Address ID from doordash_addresses"), }, }, ({ address_id }) => wrap(async () => { await api.account.setDefaultAddress(address_id); const addrs = await api.account.getAddresses(); const match = addrs.find((a) => String(a.id) === String(address_id)); const name = match ? `${match.street}, ${match.city}` : address_id; return ok(`Delivery address set to: ${name}`); }), );