Upper Route Planner MCP by usefulapi

v1.17.1
io.usefulapi/upper-route-planner Checked 2 days ago Published 10 hours ago

Read Upper drivers and stops; create and optimize routes, assign drivers, share routes to the app.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

upper_list_drivers List drivers

List the active drivers on the Upper team that owns the API token: id, name, email and phone. Use the ids with upper_assign_drivers and upper_share_route_to_drivers. GET /ext-get-drivers.

upper_list_stops List stops

List the team's stops in optimized order: address, coordinates, contact, time window, duration, status, route_id and custom ids. Pass route_id for one route (optionally scheduled=true/false); pass unscheduled=true (without route_id) for stops not on any route; with no filter all active stops are returned. Upper has no paging, so this tool pages locally: `limit` stops (default 100, max 500) starting at `offset`; the reply says if more remain (truncated, next_offset). GET /ext-get-stops.

ParameterTypeDescription
limitintegerMost stops to return, 1-500 (default 100).
offsetintegerSkip this many stops (use next_offset from the previous reply to read on).
route_idintegerOnly the stops on this route.
scheduledbooleanWith route_id only: true = scheduled stops, false = unscheduled stops of that route.
unscheduledbooleanWithout route_id: true = unscheduled stops across all routes.

upper_get_optimization_status Get route optimization status

Check whether a route is optimized: status is optimized, pending (still running) or not_optimized, plus the queue_id of the last job. Poll this after upper_optimize_route. GET /ext-optimization-status.

ParameterTypeDescription
route_id *integerThe route id.

upper_get_custom_fields Get stop custom fields

The workspace's five stop custom-field slots (custom1 - custom5: type, label, enabled, required) and which are enabled. Needs the Custom fields feature in the Upper plan. GET /ext-get-custom-fields.

upper_get_capacity_fields Get capacity fields

The workspace's five capacity-field slots (capacity1 - capacity5: label, unit, enabled) used for load planning. GET /ext-get-capacity-fields.

upper_create_route Create route

WRITE: create a new, empty route (name, date, optimization preference, units, pickup sequencing, service time). Omitted settings fall back to the account's defaults. Returns the new route_id; add stops with upper_create_stop. Calling it twice creates two routes. POST /ext-create-route.

ParameterTypeDescription
optimize_forstringOptimize for time or distance.
pickup_settingsstringWhen pickups are sequenced: auto, before or after the deliveries.
route_datestringRoute start date, yyyy-mm-dd (default today).
route_namestringRoute name (default: New Route).
service_timeintegerPer-stop service (dwell) time in seconds.
unitsstringDistance units: miles or km.

upper_update_route Update route

WRITE: change settings of an existing route (name, date, optimize_for, units, pickup_settings, service_time). Only the fields you pass change. POST /ext-update-route.

ParameterTypeDescription
route_id *integerThe route to update.
optimize_forstringOptimize for time or distance.
pickup_settingsstringWhen pickups are sequenced: auto, before or after.
route_datestringNew start date, yyyy-mm-dd.
route_namestringNew route name.
service_timeintegerPer-stop service (dwell) time in seconds.
unitsstringDistance units: miles or km.

upper_create_stop Create stop

WRITE: create a stop. The address is geocoded by Upper. Pass route_id to put it on a route (the route must not be active/in progress; an optimized route is flagged for re-optimization); omit it for an unscheduled stop. Calling it twice creates two stops. POST /ext-create-stop.

ParameterTypeDescription
address *stringStreet address of the stop (geocoded by Upper).
capacity_fieldsobjectCapacity values (integers) for load planning, keys capacity1 - capacity5.
citystringCity (overrides the geocoded value).
company_namestringCompany name for the stop.
contact_namestringContact (recipient) name.
custom_fieldsobjectCustom field values keyed by slot (custom1 - custom5). Only fields enabled in the workspace (and in the plan) are stored.
customer_system_idstringYour own identifier for the stop (for cross-referencing).
emailstringContact email.
end_timestringLatest service time (time window end), HH:MM or HH:MM:SS.
nick_namestringShort label for the stop.
notestringFree-text note shown to the driver.
parcel_countintegerNumber of parcels at the stop.
phonestringContact phone number; non-digits are stripped by Upper.
phone_country_codestringPhone dialing code, for example 1.
pin_colorstringMap pin colour, hex like #FF6600.
route_idintegerRoute to attach the stop to; omit for an unscheduled stop.
start_timestringEarliest service time (time window start), HH:MM or HH:MM:SS.
statestringState or region (overrides the geocoded value).
stop_durationintegerService duration at the stop, in seconds.
stop_prioritystringStop priority, for example Normal, High, Urgent.
stop_typestringStop type, for example Delivery or Pickup.
zipcodestringPostal code (overrides the geocoded value).

upper_update_stop Update stop

WRITE: change an existing stop; only the fields you pass change. A new address is re-geocoded (city/state/zipcode you pass with it are ignored); city/state/zipcode apply only without an address. Passing route_id moves the stop to that route. Editing a stop on an optimized route flags the route for re-optimization; stops on an active route cannot be edited. POST /ext-update-stop.

ParameterTypeDescription
stop_id *integerThe stop to update.
addressstringNew street address (re-geocoded).
capacity_fieldsobjectCapacity values (integers) for load planning, keys capacity1 - capacity5.
citystringCity (only used when no address is passed).
company_namestringCompany name for the stop.
contact_namestringContact (recipient) name.
custom_fieldsobjectCustom field values keyed by slot (custom1 - custom5). Only fields enabled in the workspace (and in the plan) are stored.
customer_system_idstringYour own identifier for the stop (for cross-referencing).
emailstringContact email.
end_timestringLatest service time (time window end), HH:MM or HH:MM:SS.
nick_namestringShort label for the stop.
notestringFree-text note shown to the driver.
parcel_countintegerNumber of parcels at the stop.
phonestringContact phone number; non-digits are stripped by Upper.
phone_country_codestringPhone dialing code, for example 1.
pin_colorstringMap pin colour, hex like #FF6600.
route_idintegerMove the stop to this route.
start_timestringEarliest service time (time window start), HH:MM or HH:MM:SS.
statestringState or region (only used when no address is passed).
stop_durationintegerService duration at the stop, in seconds.
stop_prioritystringStop priority, for example Normal, High, Urgent.
stop_typestringStop type, for example Delivery or Pickup.
zipcodestringPostal code (only used when no address is passed).

upper_assign_drivers Assign drivers to a route

WRITE: assign one or more drivers (ids from upper_list_drivers) to a route, replacing the route's drivers. Every id must be an active driver on the team. If the route was already optimized it is reset to unoptimized (needs_optimization: true), so run upper_optimize_route again. POST /ext-assign-drivers.

ParameterTypeDescription
driver_ids *arrayDriver ids to assign.
route_id *integerThe route.

upper_optimize_route Optimize route

WRITE: start optimizing a route's stop order. The route needs at least one stop and one assigned driver (upper_assign_drivers). It runs asynchronously: this returns status pending and a queue_id, then poll upper_get_optimization_status. If a job is already running, that job is returned. POST /ext-optimize-route.

ParameterTypeDescription
route_id *integerThe route to optimize.
timezonestringIANA timezone for the optimization, for example America/New_York.

upper_share_route_to_drivers Share route to drivers

WRITE: push a route to the drivers' mobile app NOW, which sends each driver a notification. Without driver_ids the route's assigned drivers are used; with them, every id must be an active driver on the team. Sending twice notifies twice. Confirm with the user before calling. POST /ext-share-to-driver.

ParameterTypeDescription
route_id *integerThe route to share.
driver_idsarrayDrivers to notify (default: the route's assigned drivers).
timezonestringIANA timezone, for example America/New_York.