data
Samsara MCP, CLI, and Lua Integration for AI Agents
Samsara integration docs for AI agents: MCP gateway setup, Samsara CLI commands, Lua API reference, credentials, and function schemas.Samsara for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
samsara.samsara_list_vehicles | Read read | 2 | List fleet vehicles from Samsara. Returns vehicle details including name, VIN, make, model, year, and GPS location. Supports pagination. |
samsara.samsara_get_vehicle | Read read | 1 | Get detailed information about a specific vehicle by its Samsara ID, including name, VIN, make, model, year, GPS location, and odometer reading. |
samsara.samsara_list_drivers | Read read | 2 | List fleet drivers from Samsara. Returns driver details including name, username, email, phone, and driver license info. Supports pagination. |
samsara.samsara_get_driver | Read read | 1 | Get detailed information about a specific driver by their Samsara ID, including name, username, email, phone, and driver license details. |
samsara.samsara_list_sensors | Read read | 2 | List IoT sensors from Samsara. Returns sensor details including name, type, model, connectivity, and current readings. Supports pagination. |
samsara.samsara_get_current_user | Read read | 0 | Get the currently authenticated Samsara user profile, including name, email, role, and organization details. |
samsara.samsara_api_get | Read read | 0 | Call a safe relative Samsara API path with GET. |
samsara.samsara_api_post | Write write | 0 | Call a safe relative Samsara API path with POST. |
samsara.samsara_api_patch | Write write | 0 | Call a safe relative Samsara API path with PATCH. |
samsara.samsara_api_delete | Write write | 0 | Call a safe relative Samsara API path with DELETE. |
samsara.samsara_get_vehicle_stats | Read read | 0 | Get latest vehicle stats. |
samsara.samsara_get_vehicle_stats_history | Read read | 0 | Get historical vehicle stats. |
samsara.samsara_get_vehicle_stats_feed | Read read | 0 | Follow a vehicle stats feed. |
samsara.samsara_list_trailers | Read read | 0 | List trailers. |
samsara.samsara_get_trailer | Read read | 0 | Retrieve a trailer. |
samsara.samsara_create_trailer | Write write | 0 | Create a trailer. |
samsara.samsara_update_trailer | Write write | 0 | Update a trailer. |
samsara.samsara_delete_trailer | Write write | 0 | Delete a trailer. |
samsara.samsara_get_trailer_stats | Read read | 0 | Get latest trailer stats. |
samsara.samsara_get_trailer_stats_history | Read read | 0 | Get historical trailer stats. |
samsara.samsara_get_trailer_stats_feed | Read read | 0 | Follow a trailer stats feed. |
samsara.samsara_list_equipment | Read read | 0 | List equipment. |
samsara.samsara_get_equipment | Read read | 0 | Retrieve equipment. |
samsara.samsara_get_equipment_stats | Read read | 0 | Get latest equipment stats. |
samsara.samsara_get_equipment_stats_history | Read read | 0 | Get historical equipment stats. |
samsara.samsara_get_equipment_stats_feed | Read read | 0 | Follow an equipment stats feed. |
samsara.samsara_list_routes | Read read | 0 | List routes. |
samsara.samsara_get_route | Read read | 0 | Retrieve a route. |
samsara.samsara_create_route | Write write | 0 | Create a route. |
samsara.samsara_update_route | Write write | 0 | Update a route. |
samsara.samsara_delete_route | Write write | 0 | Delete a route. |
samsara.samsara_list_addresses | Read read | 0 | List addresses. |
samsara.samsara_get_address | Read read | 0 | Retrieve an address. |
samsara.samsara_create_address | Write write | 0 | Create an address. |
samsara.samsara_update_address | Write write | 0 | Update an address. |
samsara.samsara_delete_address | Write write | 0 | Delete an address. |
samsara.samsara_list_tags | Read read | 0 | List tags. |
samsara.samsara_get_tag | Read read | 0 | Retrieve a tag. |
samsara.samsara_create_tag | Write write | 0 | Create a tag. |
samsara.samsara_update_tag | Write write | 0 | Update a tag. |
samsara.samsara_delete_tag | Write write | 0 | Delete a tag. |
samsara.samsara_list_users | Read read | 0 | List users. |
samsara.samsara_get_user | Read read | 0 | Retrieve a user. |
samsara.samsara_list_defects | Read read | 0 | List DVIR defects. |
samsara.samsara_get_defects_history | Read read | 0 | Get historical DVIR defects. |
samsara.samsara_list_defect_types | Read read | 0 | List defect types. |
samsara.samsara_list_documents | Read read | 0 | List documents. |
samsara.samsara_get_document | Read read | 0 | Retrieve a document. |
samsara.samsara_create_document | Write write | 0 | Create a document. |
samsara.samsara_list_document_types | Read read | 0 | List document types. |
samsara.samsara_get_document_type | Read read | 0 | Retrieve a document type. |