# Find Tracking Status — Shipengine

> Retrieves package tracking information. See the docs.

- Key: `shipengine-find-tracking-status`
- Type: Action (Read-only)
- Version: 0.0.4
- App: Shipengine (`shipengine`) — https://pipedream.com/apps/shipengine.md
- This page (HTML): https://pipedream.com/apps/shipengine/actions/find-tracking-status
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/shipengine/actions/find-tracking-status/find-tracking-status.mjs

## Description

Retrieves package tracking information. [See the docs](https://shipengine.github.io/shipengine-openapi/#operation/get_tracking_log).

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `carrierCode` | `string` | Yes | Carrier code used to retrieve tracking information. E.g. stamps_com Options are loaded from the connected account. |
| `trackingNumber` | `string` | Yes | The tracking number associated with a shipment. E.g. 9405511899223197428490 Options are loaded from the connected account. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "shipengine",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "shipengine-find-tracking-status",
  arguments: {
    carrierCode: "Carrier Code",
    trackingNumber: "Tracking Number",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "shipengine-find-tracking-status",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    shipengine: { authProvisionId: "apn_xxxxxxx" },
    carrierCode: "Carrier Code",
    trackingNumber: "Tracking Number",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "shipengine-find-tracking-status",
    "configured_props": {
      "shipengine": { "authProvisionId": "apn_xxxxxxx" },
      "carrierCode": "Carrier Code",
      "trackingNumber": "Tracking Number"
    }
  }'
```

---

- App: https://pipedream.com/apps/shipengine.md · All apps: https://pipedream.com/apps
