# Fulfillment and shipment tools

> Review location queues, manage order lines, quote shipping, and buy labels through MCP.

Source: https://docs.sqquid.com/docs/mcp/tools/fulfillment-and-shipments/

Fulfillment works per location. Get `store_id` values from `locations_list`, then read the location's queue before making changes.

## Read queues and order lines

### `fulfillment_list`

Requires `fulfillment:read`. Read-only.

Pass `store_id` to list orders and their lines at that location. Optional inputs include `status`, `search`, `connection_id`, `sort_by`, and `sort`. The default status is `toShip`, which shows open work.

Use `limit` from 1 to 100, default 25, and `offset`, default 0, to page results. The returned `total` counts orders in the selected status at the location and ignores search. `open_orders` and `active_pickups` report open work and carrier pickups.

### `fulfillment_get`

Requires `fulfillment:read`. Read-only.

Pass `order_id` to read the order's lines at every location. Use the returned allocation IDs for line changes. An allocation assigns units of an order item to a location; it is not the order item ID.

## Change an order line

These tools require `fulfillment:write`. Each accepts an `allocation_id` from a fulfillment read tool.

| Tool | Other inputs | Behavior |
| --- | --- | --- |
| `fulfillment_move` | Required `to_store_id`; optional positive integer `qty` | Moves the whole line by default. A partial move splits it. Requires approval. |
| `fulfillment_hold` | `hold`, default `true` | Holds the line immediately. Use `false` to release it to `to_ship`. |
| `fulfillment_cancel` | `cancel`, default `true` | Cancels the entire line after approval. Use `false` to restore it immediately to `to_ship`. |

Shipped or cancelled lines cannot move. Release held lines before moving or cancelling them. Shipped and cancelled lines cannot have their hold changed. Shipped or held lines cannot be restored with `fulfillment_cancel`.

Moving units records a transfer return in Sqquid and updates your POS and the order's source Connection, if they support it. Read the returned order state after any change. A saved allocation does not confirm that external updates have finished.

## `fulfillment_mark_shipped`

Requires `fulfillment:write`. User approval is required.

Pass `order_id` and `store_id` to mark the location's `to_ship` lines as shipped outside Sqquid. This records a shipment without buying a label.

## Quote and buy a shipping label

### `fulfillment_shipping_rates`

Requires `fulfillment:write`, even though quoting does not buy a label.

| Input | Required | Description |
| --- | --- | --- |
| `order_id`, `store_id` | Yes | Order and location shipping its `to_ship` lines. |
| `length`, `width`, `height` | No | Parcel dimensions in inches. Default 0. A length of 0 uses the shipping Connection's default package. |
| `weight` | No | Weight in ounces. Default 0 lets the provider calculate it from products. |
| `signature` | No | Require a signature on delivery. Default `false`. |

The tool uses the Account's shipping Connection or TikTok Shop shipping. Review `messages` for provider errors, such as address problems. Show the returned rates, currencies, and recommended rate to the user.

The result contains a `quote_token`. Quotes expire after 30 minutes. Request new rates if the quote expires.

### `fulfillment_buy_label`

Requires `fulfillment:write`. User approval is required, and buying a label charges the carrier account.

Pass `quote_token` and a `rate_id` from the same quote. Optional `insurance` is a nonnegative declared value to insure.

After approval, Sqquid buys the label, creates the packing slip, and records the shipment in Sqquid. Sqquid updates your POS and the order's source Connection, if they support it. The result includes the shipment with tracking and document links. Inspect `shipments_list` if the outcome is unclear before attempting another purchase.

## `fulfillment_pickup`

Requires `fulfillment:write`. User approval is required for both steps.

Pass `order_id`, `store_id`, and `step`:

- `ready` marks store-pickup lines ready for the customer.
- `picked_up` records collection and marks the lines shipped.

Both steps update your POS and the order's source Connection, if they support it. This tool handles customer pickup, not scheduling a carrier pickup.

## `shipments_list`

Requires `fulfillment:read`. Read-only.

Supply `order_id` for an order's shipments or `store_id` for a location's shipments. Optional filters are `date_from`, `date_to`, `carrier`, and `search` for an order or tracking number.

Location listings use `limit` from 1 to 100, default 25, and `offset`, default 0. An order-only listing does not apply the page-size limit.

Results include carrier, service, tracking, label and packing-slip links, shipped items, carrier pickup state, and manifest details when available.
