Get shipment KPIs
get_kpisThe organization's shipment statistics for a period, already counted: the same figures as the Statistics page. Use it for "how many containers arrived late this month", "what share of arrivals were on time this quarter", "how many incidents per supplier" or "which forwarder is most often late", instead of paging through search_shipments. The last 30 days by default; from and to are dates, at most 24 months back, and a to after today is read as today. A shipment counts in the period it was created in, archived ones included. Returns shipments (total, ocean, air, road), arrivals against the original ETA (measured are the ones the carrier confirmed; on time means not later than planned, then up to 5 days late and over 5 days late), incidents (delay over 2 days, rollover, free-time breach, document error, customs hold) with the rate per 100 shipments, CO2 in tonnes, and a monthly series whose first and last months may be partial. group_by adds a breakdown: carrier, forwarder or supplier (shipments, arrivals and incidents each, the 25 with most shipments), lane (arrivals, the 25 with most), or destination_port (days in port between discharge and gate out, containers still there counted up to today, the 10 ports with most containers). Narrow to one supplier or forwarder with its id from list_companies, or to one transport type. Quote the numbers as returned, with the period and filters in period and filters.
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": "get_kpis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last day, included, an ISO 8601 date. Default and latest: today. | |
| from | No | First day, an ISO 8601 date such as "2026-10-01". Default: 29 days before `to`. | |
| group_by | No | Add one breakdown. Omit for totals only. | |
| supplier | No | Only this supplier's shipments: a company id such as "cmp_12", from list_companies. | |
| forwarder | No | Only shipments handled by this forwarder: a company id such as "cmp_12", from list_companies. | |
| transport_type | No | Only ocean, air or road shipments. |