FleetMind MCP Tools - Quick Reference
Geocoding & Routing (3 tools)
geocode_address- Convert address to GPS coordinatescalculate_route- Calculate route with vehicle-specific optimization (motorcycle/car/bicycle), toll avoidance, traffic datacalculate_intelligent_route- Advanced routing with weather + traffic + vehicle type analysis
Order Management (8 tools)
create_order- Create new delivery ordercount_orders- Count orders by status (pending/assigned/in_transit/delivered)fetch_orders- Get list of orders with filters and paginationget_order_details- Get full details of specific order by IDsearch_orders- Search orders by customer name, address, or order IDget_incomplete_orders- Get all pending/assigned/in_transit ordersupdate_order- Update order status, driver, location, notes (with assignment cascading)delete_order- Delete order (with active assignment checks)
Driver Management (8 tools)
create_driver- Register new driver with name, phone, vehicle typecount_drivers- Count drivers by status (active/busy/offline)fetch_drivers- Get list of drivers with filters and paginationget_driver_details- Get full details of specific driver by IDsearch_drivers- Search drivers by name, phone, or driver IDget_available_drivers- Get all active drivers ready for assignmentupdate_driver- Update driver status, phone, vehicle type, location (with assignment validation)delete_driver- Delete driver (with assignment safety checks)
Assignment Management (6 tools)
create_assignment- Assign order to driver (validates status, calculates route, saves all data)get_assignment_details- Get assignment details by assignment ID, order ID, or driver IDupdate_assignment- Update assignment status with cascading updates to orders/driversunassign_order- Unassign order from driver (reverts statuses, requires confirmation)complete_delivery- Mark delivery complete and auto-update driver location to delivery addressfail_delivery- Mark delivery as failed with MANDATORY driver location and failure reason
Bulk Operations (2 tools)
delete_all_orders- Bulk delete all orders (or by status filter, blocks if active assignments exist)delete_all_drivers- Bulk delete all drivers (or by status filter, blocks if assignments exist)
Total: 27 MCP Tools
Routing Tools: 3 (with Google Routes API integration) Order Tools: 8 (full CRUD + search + cascading) Driver Tools: 8 (full CRUD + search + cascading) Assignment Tools: 6 (complete assignment lifecycle + delivery completion + failure handling) Bulk Operations: 2 (efficient mass deletions with safety checks)
Key Features:
- β Real-time traffic & weather-aware routing
- β Vehicle-specific optimization (motorcycle/bicycle/car/van/truck)
- β Toll detection & avoidance
- β Complete fleet management (orders + drivers + assignments)
- β Assignment system with automatic route calculation
- β Automatic driver location updates on delivery completion
- β Mandatory location + reason tracking for failed deliveries
- β Structured failure reasons for analytics and reporting
- β Cascading status updates (order β assignment β driver)
- β Safety checks preventing invalid deletions/updates
- β PostgreSQL database with foreign key constraints
- β Search & filtering capabilities
- β Status tracking & validation
Assignment System Capabilities:
- Manual assignment with validation (pending orders + active drivers only)
- Automatic route calculation from driver location to delivery address
- Delivery completion with automatic driver location update to delivery address
- Delivery failure handling with mandatory GPS location and failure reason
- Structured failure reasons: customer_not_available, wrong_address, refused_delivery, damaged_goods, payment_issue, vehicle_breakdown, access_restricted, weather_conditions, other
- Status management with cascading updates across orders/drivers/assignments
- Safety checks preventing deletion of orders/drivers with active assignments
- Assignment lifecycle: active β in_progress β completed/failed/cancelled
- Database integrity via FK constraints (ON DELETE CASCADE/RESTRICT/SET NULL)