# GLS Canada (Dicom) Tracking API & MCP

URL: https://docs.lastscanned.com/carriers/glscanada

Query live **GLS Canada** (`glscanada`, formerly Dicom) parcel status and scan history in a single synchronous `GET` request or MCP tool call. `lastscanned` reads the same service the tracker on gls-group.com/CA uses, so no account or API key is needed.

## Overview & Quick Facts

| Property | Value |
|---|---|
| **Carrier slug (`?carrier=`)** | `glscanada` |
| **Brand aliases** | GLS Canada, Dicom, GLS Dicom |
| **Category** | Canadian domestic courier |
| **Single-package REST endpoint** | `GET https://api.lastscanned.com/v1/track/{trackingNumber}?carrier=glscanada` |
| **Batch REST endpoint** | `GET https://api.lastscanned.com/v1/track?numbers=...&carrier=glscanada` |
| **MCP server (`https://mcp.lastscanned.com`)** | `track_package`, `track_packages`, `list_carriers` (`claude mcp add --transport http lastscanned https://mcp.lastscanned.com`) |
| **Authentication & pricing** | `Authorization: Bearer lsk_live_...` · **1 free keyless lookup/day per IP** · **Free tier** (5 unique numbers/day, $0) · **Pro** ($4.99/mo for 1,000 unique numbers, unlimited re-polls, $0.015/extra) · **HTTP 402 Stripe MPP** ($0.50 for 25-number `lsk_pack_` key or $0.02/number in USDC on Tempo) |

## Tracking Number Formats & Auto-Detection

| Pass | Rule / Regex | Check Digit | Examples |
|---|---|---|---|
| **Pass 1 (`matches`)** | *None* | none | none |
| **Pass 2 (`mayMatch`)** | *None* | none | none |
| **Explicit (`?carrier=glscanada`)** | GLS Canada / Dicom numbers | none | `1234567890` |

GLS Canada numbers share their shape with other carriers, so a number is never auto-detected as GLS Canada. Always pass `?carrier=glscanada`.

## Synchronous `GET` Request & Normalized JSON Response

### `curl`

```bash
curl -s "https://api.lastscanned.com/v1/track/1234567890?carrier=glscanada" \
  -H "Authorization: Bearer $LASTSCANNED_API_KEY"
```

### JavaScript / TypeScript (`fetch`)

```ts
const res = await fetch("https://api.lastscanned.com/v1/track/1234567890?carrier=glscanada", {
  headers: { Authorization: `Bearer ${process.env.LASTSCANNED_API_KEY}` },
});
const pkg = await res.json();
console.log(pkg.status, pkg.events[0]);
```

### MCP `track_package` tool call

```json
{
  "tool": "track_package",
  "arguments": {
    "tracking_number": "1234567890",
    "carrier": "glscanada"
  }
}
```

### Normalized `TrackingResult` JSON response

```json
{
  "carrier": "glscanada",
  "trackingNumber": "1234567890",
  "status": "in_transit",
  "statusDescription": "In transit - Arrived at terminal",
  "service": null,
  "deliveredAt": null,
  "deliveredAtLocal": null,
  "signedBy": null,
  "destination": { "city": "Mississauga", "state": "ON", "country": "CA" },
  "events": [
    {
      "timestamp": null,
      "localTime": "2026-10-26T14:22:00",
      "status": "in_transit",
      "description": "In transit - Arrived at terminal",
      "location": "Toronto",
      "code": null
    }
  ]
}
```

## Notes

- **Times**: scans carry no province, so a time without an offset keeps only `localTime`.
- **Unknown numbers**: GLS Canada answers `NORECORD`, which comes back as `404 not_found`.
- **Coverage**: GLS Canada shipments only. [GLS US](/carriers/glsus) is a different carrier.

## Related Resources

- **Carrier hub**: [All supported carriers](/carriers)
- **Regex & check digits**: [Tracking number formats & auto-detection](/formats)
- **AI support workflows**: [WISMO AI agents & synchronous tracking](/wismo)
