Tool reference

Every tool the AfterShip Post-purchase MCP server exposes, grouped by product. There are 21 in total — 9 that read your data and 12 that change it.

Read tools the agent can run on its own. Write tools change real records, so the agent shows you what will change and waits for your confirmation first. See how the agent handles writes for the rules it follows.

ToolTypeDescription
list_shipmentsReadList shipments, with options to filter by tracking number, order number, carrier, status (including Exception and Expired), destination, date range, etc. Each row carries the internal id used to look up the detail.
get_shipmentReadGet details of a shipment, including shipment status, checkpoints, delivery estimate, and related carrier and customer information.
get_field_optionsReadLook up the valid values, with display labels, for one filter dimension of one product (tracking or returns) — carriers, statuses, service types, shipping methods, countries, and so on. Returns the whole option set in a single call.
update_shipmentWriteUpdate editable fields on one shipment — title, note, language, custom fields, tags, customer name / email / phone, and the origin / destination address. The order number cannot be changed.
retrack_shipmentWriteRe-activate tracking for one shipment that stopped being tracked (typically an expired one). A shipment can be retracked at most 3 times.
mark_shipment_statusWriteManually mark one shipment as reaching a final state — delivered, lost, or returned_to_sender. This overrides what the carrier reports.
ToolTypeDescription
list_returnsReadList returns, with options to filter by return status, date range, shipping status, refund status, etc.
get_returnReadGet details of a return, including return items, exchange items, status, return value, return reason, and related return information.
list_return_workflowReadList the return workflows configured for your organization, with their priority, status, and action type.
get_return_workflowReadGet one return workflow by id, including the trigger conditions that the list view leaves out.
list_return_allowlistReadList the allowlist rules that let a return through.
list_return_blocklistReadList the blocklist rules that stop a return from being started.
approve_returnWriteApprove one submitted RMA.
reject_returnWriteReject one submitted RMA. The rejection reason has to come from you — the agent will not invent one.
receive_return_itemsWriteRecord that returned items physically arrived for one approved RMA, optionally with quality-inspection grades (a best to d worst). Restocking is not decided here.
resolve_returnWriteClose one processed RMA. Only refund outcomes are supported today — to the original payment method or as store credit, as configured upstream. Exchanges cannot be created here.
add_return_commentWritePost an internal note on one RMA's timeline. It is written for your team and never sent to the shopper.
add_return_allowlistWriteAdd one or more allowlist rules.
remove_return_allowlistWriteRemove one allowlist rule by its id.
add_return_blocklistWriteAdd one or more blocklist rules.
remove_return_blocklistWriteRemove one blocklist rule by its id.