List Import Sessions
list_import_sessionsList the credential's staged import sessions, newest first — the way to FIND an importSessionId when you don't have one. Every other tool in this family (get_import_session, set_import_mapping, commit_import_session, rollback_import_session) needs the id, and create_import_session returns it exactly once, so start here whenever a customer asks about "the import I ran" — especially before a rollback, where the id is what stands between them and undoing a bad import. Returns per session: id, kind, source (Staged upload vs Inline lineage from import_historical_sales_orders — inline rows have no file fields by design), status, file name/size/rowCount, totalOrders/committedOrders/failedOrders, and the created/committed/expires timestamps — no file contents, profile, or validation report (call get_import_session for those). Optional status filter (AwaitingUpload, Uploaded, Validated, Previewed, Committing, Committed, Failed, Cancelled, RolledBack); paged (Total pre-paging + limit/offset, default 25, max 100). Staged sessions live 7 days; Inline lineage sessions keep their year-long rollback window, so both recent uploads and still-rollbackable inline imports appear here.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_import_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size (default 25, max 100). | |
| offset | No | Zero-based offset for paging (default 0). | |
| status | No | Optional status filter (case-insensitive): AwaitingUpload, Uploaded, Validated, Previewed, Committing, Committed, Failed, Cancelled, RolledBack. Omit for every status. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| limit | No | ||
| total | No | ||
| offset | No | ||
| sessions | No |