Onfleet MCP by usefulapi
v1.2.1Read 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.
| Parameter | Type | Description |
|---|---|---|
from * | integer | Start of the range, Unix ms. Required. |
lastId | string | Pagination cursor: the lastId from the previous page. |
state | string | Comma-separated task states: 0 unassigned, 1 assigned, 2 active, 3 completed. |
to | integer | End of the range, Unix ms. Defaults to now. |
worker | string | Worker 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}.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID. |
assignmentHistory | boolean | Include 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}.
| Parameter | Type | Description |
|---|---|---|
shortId * | string | Task 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}.
| Parameter | Type | Description |
|---|---|---|
orderShortId * | string | Order short ID. |
onfleet_list_route_plans List route plans
List route plans, optionally for one worker. Onfleet API: GET /routePlans.
| Parameter | Type | Description |
|---|---|---|
workerId | string | Only route plans for this worker. |
onfleet_get_route_plan Get route plan
Get one route plan by its ID. Onfleet API: GET /routePlans/{routePlanId}.
| Parameter | Type | Description |
|---|---|---|
routePlanId * | string | Route 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.
| Parameter | Type | Description |
|---|---|---|
hubId * | string | Hub ID. |
workerId * | string | Worker 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.
| Parameter | Type | Description |
|---|---|---|
address * | object | Destination address. Use unparsed, or the structured fields. |
location | array | [longitude, latitude]. Optional: skips geocoding. |
notes | string | Notes about the destination. |
onfleet_create_worker Create worker
Create a driver (worker) that belongs to one or more teams. Onfleet API: POST /workers.
| Parameter | Type | Description |
|---|---|---|
name * | string | The worker's full name. |
phone * | string | Phone number in the organization's country format. |
teams * | array | One or more team IDs the worker belongs to. |
capacity | number | Units the worker can carry, for route optimization. |
displayName | string | Name shown in SMS and tracking pages instead of the real name. |
vehicle | object | The 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.
| Parameter | Type | Description |
|---|---|---|
destinationId * | string | ID of an existing destination. |
completeAfter | integer | Earliest completion time, Unix ms. |
completeBefore | integer | Latest completion time, Unix ms. |
container | object | Container to add the task to, as in Onfleet's Containers docs. Default: the organization's default container. |
dependencies | array | Task IDs that must complete first. |
notes | string | Task notes, up to 10,000 characters. |
pickupTask | boolean | True if this is a pickup task. |
quantity | number | Units dropped off at this task, for route optimization. |
recipientName | string | Recipient name for this task only. |
recipientNotes | string | Recipient notes for this task only. |
recipientSkipSMSNotifications | boolean | Skip SMS notifications to the recipient for this task. |
recipients | array | Zero or one recipient ID. |
serviceTime | number | Minutes 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.
| Parameter | Type | Description |
|---|---|---|
orderIds * | array | Order IDs to cancel. |
onfleet_delete_route_plan Delete route plan
Delete a route plan. This cannot be undone. Onfleet API: DELETE /routePlans/{routePlanId}.
| Parameter | Type | Description |
|---|---|---|
routePlanId * | string | Route 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}.
| Parameter | Type | Description |
|---|---|---|
trigger * | integer | Webhook trigger code, as in Onfleet's webhook docs. |
url * | string | HTTPS URL that receives the webhook POSTs. |
webhookId * | string | Webhook ID. |
canReceiveConnectionEvents | boolean | Also receive connection events. |
scopedApiKeyId | string | null | Scoped API key ID, or null for none. |