Deftship MCP by usefulapi
v1.1.0Quote rates, track parcels, check balance; create orders, buy labels and void shipments in Deftship.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
deftship_check_balance Check account balance
Return your organisation's current Deftship balance and currency. Check it before buying a label. Deftship API: GET /balance.
deftship_get_address_book Get saved addresses
Fetch your saved addresses. 'from' records give ids for from_address_id and return_address_id. 'to' records are recipients: copy their fields into to_address, because parcel tools take a full to_address. Deftship API: GET /address-book/{from|to}.
| Parameter | Type | Description |
|---|---|---|
destination * | string | 'from' for saved sender addresses, 'to' for saved recipient addresses. |
deftship_validate_address Validate an address
Validate an address before shipping to avoid correction surcharges. Returns suggested address candidates and whether the address is residential. Deftship API: POST /address/validate. Does not spend money.
| Parameter | Type | Description |
|---|---|---|
country * | string | Two-letter country code. |
street_1 * | string | Street line 1. |
zip * | string | Postal / ZIP code. |
attention | string | |
city | string | |
name | string | |
state | string | Required for US and Canada. |
street_2 | string | |
street_3 | string | |
telephone | string |
deftship_get_service_names List carrier services
List carrier services and their service codes. Use 'shipment' for parcel and freight services, or 'pickup' for pickup services. Deftship API: GET /{shipment|pickup}/service-names.
| Parameter | Type | Description |
|---|---|---|
type | string | Which service catalogue to return. |
deftship_get_carrier_status Get carrier status
Check the current operational status of a carrier, such as known outages or degraded service. Deftship API: GET /carrier-status/{carrier}.
| Parameter | Type | Description |
|---|---|---|
carrier * | string | Carrier slug, e.g. 'ups', 'fedex', 'usps'. |
deftship_get_parcel_rates Get parcel rates
Quote parcel rates from the allowed carriers for a from/to address and package list. Each rate has an id (rate_id) for deftship_ship_parcel. Does not spend money. Pass carrier to quote one carrier only. Deftship API: POST /parcel-orders/get-rates.
| Parameter | Type | Description |
|---|---|---|
package_list * | array | Packages in this shipment. |
to_address * | object | Receiver address. |
carrier | string | Restrict quoting to one carrier, e.g. 'ups'. Faster. |
customs_details | object | Customs details for international shipments |
extra_services | object | Optional extra carrier services. All default to false. |
from_address | object | Sender address. Required if from_address_id is not given. |
from_address_id | integer | Saved sender address id. Give this OR from_address. |
length_unit | string | Default: your account preference. |
return_address_id | integer | Saved return address id. |
weight_unit | string | Default: your account preference. |
deftship_get_parcel Get or track a parcel
Fetch a parcel order's status, tracking numbers and label URL. Give exactly one of shipment_order_id or tracking_number. Deftship API: GET /parcel-orders/{id} or /parcel-orders/tracking-number/{number}.
| Parameter | Type | Description |
|---|---|---|
shipment_order_id | Shipment order id. | |
tracking_number | string | Tracking number. |
deftship_list_ecommerce_parcels List e-commerce draft parcels
List draft parcel orders imported from connected e-commerce platforms. Returns the first page only (up to 50 drafts): narrow the date, platform or order_number filters to reach the rest. Vendor limit: 20 requests per minute. Deftship API: GET /parcel-orders/ecommerce.
| Parameter | Type | Description |
|---|---|---|
end_date | string | Filter end date, yyyy-mm-dd. |
order_number | string | Platform order id or order number. |
platform | string | Platform, e.g. 'shopify'. |
start_date | string | Filter start date, yyyy-mm-dd. |
deftship_create_parcel_order Create a draft parcel order
WRITE: create a draft parcel order that appears on the Open Orders page. Does not buy a label. Returns shipment_order_id. Pass shipment_order_id to update an existing draft. Deftship API: POST /parcel-orders.
| Parameter | Type | Description |
|---|---|---|
package_list * | array | Packages in this shipment. |
to_address * | object | Receiver address. |
customs_details | object | Customs details for international shipments |
extra_services | object | Optional extra carrier services. All default to false. |
from_address | object | Sender address. Required if from_address_id is not given. |
from_address_id | integer | Saved sender address id. Give this OR from_address. |
length_unit | string | Default: your account preference. |
return_address_id | integer | Saved return address id. |
shipment_order_id | integer | Existing draft id to update. Omit to create one. |
weight_unit | string | Default: your account preference. |
deftship_ship_parcel Buy a parcel label
WRITE, SPENDS MONEY: buy the label for a rate_id from deftship_get_parcel_rates. Charges your Deftship balance. Without confirm true it only returns a preview and sends nothing. Confirm with the user first. Deftship API: POST /parcel-orders/ship.
| Parameter | Type | Description |
|---|---|---|
rate_id * | integer | The rate id to buy (from deftship_get_parcel_rates). |
confirm | boolean | Must be true to buy the label. False returns a preview. |
deftship_void_parcel Void a parcel shipment
WRITE, IRREVERSIBLE: void a parcel order by shipment_order_id. May incur a void fee. Without confirm true it only returns a preview and sends nothing. Confirm with the user first. Deftship API: POST /parcel-orders/void.
| Parameter | Type | Description |
|---|---|---|
shipment_order_id * | integer | The shipment order id to void. |
confirm | boolean | Must be true to void. False returns a preview. |