智能发单-获取订单详情
Retrieve delivery order details by entering the order code to track status, view information, and manage UU跑腿 (UU Errands) service requests.
Instructions
获取订单详情,需要需要输入订单编号:订单编号order_code
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_code | Yes | order_code: 订单编号order_code |
Implementation Reference
- src/uupt_mcp_server/order.py:52-60 (handler)The tool '智能发单-获取订单详情' is implemented in the 'order_query' function. It takes an 'order_code' as input, prepares the business payload, and calls the 'post_send' helper to request the order details from the API.
@mcp.tool(name="智能发单-获取订单详情", description="获取订单详情,需要需要输入订单编号:订单编号order_code") async def order_query(order_code: str = Field(description="order_code: 订单编号order_code"), ) -> dict: biz = { 'order_code': order_code } url = f"{OPENAPI_URL_BASE}order/orderDetail" return post_send(biz, url)