Tool reference
Batch shipping and platform sync
These tools handle work in bulk: pulling new orders in from a connected store and buying labels for many orders at once. A typical flow: check your stores with list_connected_platforms, import recent orders with sync_platform_orders and follow the job with get_sync_status, then preview and confirm a batch with trigger_batch_purchase (access-token connections only) and follow it with get_batch_status. Both kinds of work run in the background, so each starts with a call that returns an ID and finishes with a status tool you poll.
Every request counts toward the limit of 60 requests per minute per token, including initialize and tools/list. When polling a status tool, wait a few seconds between calls. Over the limit you get HTTP 429 with Retry-After: 60. Batches and sync jobs are limited to your own account: an ID from another account is treated like one that doesn't exist.
trigger_batch_purchase
Buys USPS Ground Advantage labels for many ready-to-ship orders at once. Without confirm it rates every eligible order and returns per-order prices and a postage total, buying nothing. With confirm: true it rates the orders again and queues the batch. A background worker then buys one label per rated order, usually within about a minute; follow it with get_batch_status. Bought labels aren't marked printed: once they're printed, call mark_labels_printed with the batch_id so a carrier pickup can collect them.
| Parameter | Type | Required | Description |
|---|---|---|---|
order_ids | array of integers | No | Orders to include. Omit to include every Ready to ship order. Only orders at Ready to ship with a street address are used; other IDs (wrong status, no address, not found) are skipped with no row and no error. Entries that can't be read as a whole number, including decimals such as 12.0, are ignored. An empty array, an array with no usable IDs, or a value that isn't an array also includes every Ready to ship order. |
max_total | number | No | Spending ceiling in dollars for the batch's postage (insurance premiums not counted). In a preview, going over sets over_max_total: true. On confirm, the fresh total is checked and the batch is refused if it is higher. 0 or less refuses any batch that costs anything. Default: no ceiling. |
weight_oz | number | No | Fallback package weight in ounces, used only for orders with no saved weight. Orders that have a weight always rate at their own. Without it, an order with no weight gets a per-order error. |
confirm | boolean | No | Omit or false to preview. true to queue the batch for purchase. Default false. |
insurance | boolean | No | Overrides your account's insure-all-shipments setting for this batch. When on, each order is insured for its order total; orders with a $0 total ship uninsured. Default: your account setting. |
Returns: A preview returns preview: true, orders, rated_count, failed_count, total_cost (postage for the rated orders), insurance, over_max_total, in_progress_batch (always null) and a note. Each order row has order_id, name, city, state and either rate, method ("USPS Ground Advantage", plus " (Cubic)" or " (Cubic Soft Pack)" when cubic pricing applies) and service_level (such as usps_ground_advantage), or an error explaining why it couldn't be rated, such as a missing weight or an APO/FPO address. Rows are sorted by recipient name. A confirm returns batch_id, requested_count (orders queued), total_cost (postage from the fresh rating), insurance and a note.
Good to know: Available on access-token connections. It is not offered on connections authorized through Ship.com sign-in (OAuth), such as the Claude directory connector and claude.ai custom connectors; there it is absent from tools/list, and a call returns JSON-RPC error -32602 saying the tool is not available. get_batch_status works on every connection. Nothing links a confirm to an earlier preview: confirm rates every order from scratch, so its total can differ, and orders that fail to rate are left out without being listed. If no order can be rated, confirm returns an error and queues nothing. To pin both the orders and the spend, confirm with the same order_ids and a max_total near the previewed total. One batch can be in progress per account, including batches started in the Ship.com web app; until it finishes, preview and confirm return an error that names its batch ID.
Money moves when the worker buys the labels. Each label's postage comes out of your postage balance, and insurance premiums, when on, are charged on top of the postage total and aren't in the preview. With auto-recharge on, if your balance can't cover the batch's postage, your payment method on file is charged once up front for the shortfall or your auto-recharge amount, whichever is larger; if that charge can't be made because there's no payment method or the account is suspended, no labels are bought. If a label fails for a payment reason, the worker stops and marks the remaining orders Not attempted to avoid repeated charges. Each label counts toward your plan's monthly shipment limit, which the preview doesn't check. An order that already has a label isn't bought twice.
Every call, preview included, requests a live USPS rate for each order, so large batches are slow. There is no batch size limit and no service choice. Labels are parcels with no signature, ship-dated when the batch is queued, in your saved label format. Rating, even in a preview, saves the recipient address and weight it used (including a weight_oz fallback) onto each order. Batch rating doesn't run address validation; if an order fails to rate, try get_rates on it alone to see the carrier's reason.
{"order_ids": [48210551, 48210554, 48210560], "max_total": 25.00, "weight_oz": 8}{"order_ids": [48210551, 48210554, 48210560], "max_total": 25.00, "weight_oz": 8, "confirm": true}get_batch_status
Reports the progress or result of a batch purchase. Omit batch_id to get the batch in progress, or your most recent batch if none is running. It reads every batch on your account, including batches started in the Ship.com web app, and works on every connection type.
| Parameter | Type | Required | Description |
|---|---|---|---|
batch_id | integer | No | The batch_id from trigger_batch_purchase. Default: the batch in progress, else the most recent batch. |
Returns: While labels are being bought: complete: false, batch_id, requested, completed (orders attempted so far, failures included; 0 until the worker starts) and a note. When finished: complete: true, batch_id, orders, purchase_success, purchase_failed, requested, total (postage plus insurance) and shipping_balance (your postage balance). Each order has order_id, name, city, state, shipping_cost (postage plus insurance), tracking_number and status (such as "Label purchased" or "Label printed"), sorted by order date. unprinted_count says how many are bought but not yet marked printed; when it's above 0, next_step tells you to call mark_labels_printed with this batch_id once they're printed. If labels failed, failed_orders lists each order_id with a reason; older batches instead return one combined errors string and a limit_reached flag. A reason is a short code, optionally followed by " - " and detail, for example "Limit reached - 100" when the monthly shipment limit was hit, or "Not attempted - ..." for orders skipped after a payment problem stopped the batch. With no batches, or an unknown batch_id, you get no_status: true and a note as a normal result, not an error.
Good to know: Needs the same plan feature as trigger_batch_purchase, so after moving to a plan without batch shipping you can't read past batches here. orders and purchase_success cover the batch's orders from Label purchased through Delivered, so printed, picked-up and shipped orders stay listed. Orders whose label was voided or that were canceled drop out, as do orders in a return, so purchase_success plus purchase_failed may not equal requested. A batch that stopped before buying anything, for example because the up-front payment couldn't be made, reports complete: true with no orders and no failure detail. A canceled batch also reports complete: true; its voided orders drop out of orders. Rarely, a batch that failed before processing began keeps reporting complete: false; if completed stays at 0 for several minutes, check the orders with list_orders. No label files here: use get_label per order, and get_balance for your current balance.
{"batch_id": 91544}list_connected_platforms
Lists the sales platforms connected to your account, with each connection's status and last sync time. It reads what Ship.com has stored and doesn't contact the platforms.
No parameters.
Returns: platforms and count. Each platform has name, status, error and last_sync. Only connected platforms appear, in this order and spelled exactly: PayPal, Bomb Party, Shopify, Etsy, Ebay, SquareSpace, Wix, TikTok, WooCommerce, Maverick, Walmart. status is usually Active, Issues or Disconnected, or an empty string if never set. error is a connection error message, currently reported only for Walmart and otherwise null. last_sync is UTC, ISO-8601 without an offset, or null if the store has never synced; WooCommerce shows 0001-01-01T00:00:00 instead of null. With nothing connected: platforms: [], count: 0.
Good to know: One entry per platform, even if you've connected several stores on it. Square, Jotform and spreadsheet or email imports aren't listed. A Shopify store that revoked Ship.com's access can still appear, as Disconnected; reconnect it in Settings → Integrations before syncing. Read last_sync together with status: on a Disconnected Shopify entry it can be the time the problem was found rather than a successful sync.
sync_platform_orders
Starts a background import of recent orders from your connected Shopify or Etsy store and returns right away with a job_id. A sync worker picks the job up, usually within seconds; follow it with get_sync_status. Importing only adds orders Ship.com doesn't already have, so running it again is safe.
| Parameter | Type | Required | Description |
|---|---|---|---|
platform | string | Yes | shopify or etsy. Not case-sensitive; surrounding spaces are ignored. Any other value, or none, returns an "Unknown platform" error. |
Returns: job_id, platform (lowercase), status and a note saying whether a new job was queued or an existing one was returned. status is always queued, even when the returned job is already running.
Good to know: The platform must already be connected in Settings → Integrations; for Shopify the connection must also be active, not uninstalled or revoked. If a sync for that platform is already queued or running, including one started outside MCP such as the import that runs when you first connect a store, that job is returned instead of a second one. Shopify imports orders created in the last 7 days (30 days if the store has never completed a sync), plus new customers from the same window. Etsy imports orders from the last 7 days. Existing Ship.com orders aren't changed and nothing is written back to the store. Newly imported orders can trigger your own automation rules for imported orders and earn rewards points, like any other import. If the store has revoked Ship.com's access, the Shopify connection is marked disconnected or the Etsy connection is removed, and you'll need to reconnect it. No money moves and no email is sent. In the rare case the job can't be queued, you get "Could not queue the sync job"; try again in a moment.
{"platform": "shopify"}get_sync_status
Checks your background order-import jobs. Pass a job_id from sync_platform_orders to see that one job, or omit it to list your 10 most recent jobs, newest first.
| Parameter | Type | Required | Description |
|---|---|---|---|
job_id | integer | No | The job to look up. Omit to list recent jobs. Send a whole number; a value that can't be read as a number returns "job_id must be an integer."; an ID that doesn't exist or belongs to another account returns a not-found error. |
Returns: With job_id, that job's fields directly (no wrapper): job_id, service, platform, status (queued, running, completed or error), queued, started, completed, error and last_sync. Without it, jobs (up to 10 of those objects) and count. Times are UTC, ISO-8601 without an offset; started and completed are null until reached. error is free-text failure detail, or null. For Shopify and Etsy jobs, platform is shopify or etsy and last_sync is the connection's current last sync time, the same on every row for that platform rather than per job. For other jobs, platform repeats the service value and last_sync is null.
Good to know: The list covers all of your account's background import work, not only Shopify and Etsy: spreadsheet uploads, email-forwarded orders, other platforms and tracking refreshes appear too. completed means the job ran, not that orders arrived; an import that ran into a problem can still finish as completed with no error. To confirm orders landed, check that last_sync moved forward and the connection is still Active in list_connected_platforms, or list your orders. A Shopify or Etsy job still running about 10 minutes after it started, or one that hits a temporary failure, is closed with an error and retried as a new job, up to 5 times for stalls. The error text names the new job's ID, so an error row can have a newer follow-up above it. A job is marked completed about 10 seconds after its import finishes.
{"job_id": 73120458}