Onfleet MCP by usefulapi

v1.2.1
io.usefulapi/onfleet Checked 3 days ago Published 1 day ago

Read tasks, orders and route plans; create tasks, cancel orders and update webhooks in Onfleet.

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

onfleet_list_tasks List tasks

List tasks created or completed in a time range. Returns up to 64 tasks per page; pass the returned lastId as lastId to get the next page. Onfleet API: GET /tasks/all.

ParameterTypeDescription
from *integerStart of the range, Unix ms. Required.
lastIdstringPagination cursor: the lastId from the previous page.
statestringComma-separated task states: 0 unassigned, 1 assigned, 2 active, 3 completed.
tointegerEnd of the range, Unix ms. Defaults to now.
workerstringWorker ID assigned to the tasks or who completed them.

onfleet_get_task Get task

Get one task by its ID, with its state, destination, recipients and completion details. Onfleet API: GET /tasks/{taskId}.

ParameterTypeDescription
taskId *stringTask ID.
assignmentHistorybooleanInclude the assignment history.

onfleet_get_task_by_short_id Get task by short ID

Get one task by its short ID (the 8-character code shown in the Onfleet dashboard). Onfleet API: GET /tasks/shortId/{shortId}.

ParameterTypeDescription
shortId *stringTask short ID, for example e5f0cc28.

onfleet_get_order Get order

Get one delivery order (a pickup task and its dropoff task) by its short ID. Onfleet API: GET /taskOrders/{orderShortId}.

ParameterTypeDescription
orderShortId *stringOrder short ID.

onfleet_list_route_plans List route plans

List route plans, optionally for one worker. Onfleet API: GET /routePlans.

ParameterTypeDescription
workerIdstringOnly route plans for this worker.

onfleet_get_route_plan Get route plan

Get one route plan by its ID. Onfleet API: GET /routePlans/{routePlanId}.

ParameterTypeDescription
routePlanId *stringRoute plan ID.

onfleet_get_delivery_manifest Get delivery manifest

Generate the compliance delivery manifest for the tasks on one worker's route at one hub. Onfleet API: GET /integrations/manifest/generate.

ParameterTypeDescription
hubId *stringHub ID.
workerId *stringWorker ID.

onfleet_create_destination Create destination

Create a delivery destination from an address. Onfleet geocodes the address when no location is given. Returns the destination ID for onfleet_create_task. Onfleet API: POST /destinations.

ParameterTypeDescription
address *objectDestination address. Use unparsed, or the structured fields.
locationarray[longitude, latitude]. Optional: skips geocoding.
notesstringNotes about the destination.

onfleet_create_worker Create worker

Create a driver (worker) that belongs to one or more teams. Onfleet API: POST /workers.

ParameterTypeDescription
name *stringThe worker's full name.
phone *stringPhone number in the organization's country format.
teams *arrayOne or more team IDs the worker belongs to.
capacitynumberUnits the worker can carry, for route optimization.
displayNamestringName shown in SMS and tracking pages instead of the real name.
vehicleobjectThe worker's vehicle. Omit for a worker on foot.

onfleet_create_task Create task

Create a delivery task for an existing destination. Recipients may get SMS notifications unless skipped. Create the destination first with onfleet_create_destination. Onfleet API: POST /tasks.

ParameterTypeDescription
destinationId *stringID of an existing destination.
completeAfterintegerEarliest completion time, Unix ms.
completeBeforeintegerLatest completion time, Unix ms.
containerobjectContainer to add the task to, as in Onfleet's Containers docs. Default: the organization's default container.
dependenciesarrayTask IDs that must complete first.
notesstringTask notes, up to 10,000 characters.
pickupTaskbooleanTrue if this is a pickup task.
quantitynumberUnits dropped off at this task, for route optimization.
recipientNamestringRecipient name for this task only.
recipientNotesstringRecipient notes for this task only.
recipientSkipSMSNotificationsbooleanSkip SMS notifications to the recipient for this task.
recipientsarrayZero or one recipient ID.
serviceTimenumberMinutes the worker spends at this destination, for route optimization.

onfleet_cancel_orders Cancel orders

Cancel delivery orders before they complete. Completed orders cannot be cancelled. Onfleet API: POST /taskOrders/cancel.

ParameterTypeDescription
orderIds *arrayOrder IDs to cancel.

onfleet_delete_route_plan Delete route plan

Delete a route plan. This cannot be undone. Onfleet API: DELETE /routePlans/{routePlanId}.

ParameterTypeDescription
routePlanId *stringRoute plan ID to delete.

onfleet_update_webhook Update webhook

Replace a webhook's settings: its receiving URL, trigger and options. Onfleet API: PUT /webhooks/{webhookId}.

ParameterTypeDescription
trigger *integerWebhook trigger code, as in Onfleet's webhook docs.
url *stringHTTPS URL that receives the webhook POSTs.
webhookId *stringWebhook ID.
canReceiveConnectionEventsbooleanAlso receive connection events.
scopedApiKeyIdstring | nullScoped API key ID, or null for none.