track_shipping
Trace and monitor parcel deliveries using company code and invoice number to access real-time shipping status updates for Korean shipments.
Instructions
Track Shipping with Company Code and Tracking Invoice
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_code | Yes | ||
| tracking_invoice | Yes |
Implementation Reference
- shippingtracker/main.py:19-28 (handler)The track_shipping tool handler: makes API call to SweetTracker with company code and tracking number, returns tracking info or error. Registered via @mcp.tool() decorator.@mcp.tool() def track_shipping(company_code: str, tracking_invoice: str): """ Track Shipping with Company Code and Tracking Invoice """ try: response = requests.post("https://info.sweettracker.co.kr/api/v1/trackingInfo", params = {"t_key": t_key, "t_code": company_code, "t_invoice": tracking_invoice}) return response.json() except Exception as e: return {"error": str(e)}