Deftship MCP by usefulapi

v1.1.0
io.usefulapi/deftship Checked 1 hour ago Published 2 days ago

Quote 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}.

ParameterTypeDescription
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.

ParameterTypeDescription
country *stringTwo-letter country code.
street_1 *stringStreet line 1.
zip *stringPostal / ZIP code.
attentionstring
citystring
namestring
statestringRequired for US and Canada.
street_2string
street_3string
telephonestring

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.

ParameterTypeDescription
typestringWhich 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}.

ParameterTypeDescription
carrier *stringCarrier 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.

ParameterTypeDescription
package_list *arrayPackages in this shipment.
to_address *objectReceiver address.
carrierstringRestrict quoting to one carrier, e.g. 'ups'. Faster.
customs_detailsobjectCustoms details for international shipments
extra_servicesobjectOptional extra carrier services. All default to false.
from_addressobjectSender address. Required if from_address_id is not given.
from_address_idintegerSaved sender address id. Give this OR from_address.
length_unitstringDefault: your account preference.
return_address_idintegerSaved return address id.
weight_unitstringDefault: 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}.

ParameterTypeDescription
shipment_order_idShipment order id.
tracking_numberstringTracking 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.

ParameterTypeDescription
end_datestringFilter end date, yyyy-mm-dd.
order_numberstringPlatform order id or order number.
platformstringPlatform, e.g. 'shopify'.
start_datestringFilter 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.

ParameterTypeDescription
package_list *arrayPackages in this shipment.
to_address *objectReceiver address.
customs_detailsobjectCustoms details for international shipments
extra_servicesobjectOptional extra carrier services. All default to false.
from_addressobjectSender address. Required if from_address_id is not given.
from_address_idintegerSaved sender address id. Give this OR from_address.
length_unitstringDefault: your account preference.
return_address_idintegerSaved return address id.
shipment_order_idintegerExisting draft id to update. Omit to create one.
weight_unitstringDefault: 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.

ParameterTypeDescription
rate_id *integerThe rate id to buy (from deftship_get_parcel_rates).
confirmbooleanMust 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.

ParameterTypeDescription
shipment_order_id *integerThe shipment order id to void.
confirmbooleanMust be true to void. False returns a preview.