getOrderInfo
Retrieve order details from Alibaba Cloud DMS using the order ID to access database metadata and query information.
Instructions
Retrieve order information from DMS using the order ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | DMS order ID |
Implementation Reference
- The main handler function for the 'getOrderInfo' tool. It takes an order_id parameter, creates a DMS client request, calls the Alibaba Cloud DMS API to get order base info, and returns the response as a dict.async def get_order_base_info( order_id: str = Field(description="DMS order ID") ) -> Dict[str, Any]: client = create_client() req = dms_enterprise_20181101_models.GetOrderBaseInfoRequest() req.order_id = order_id try: resp = client.get_order_base_info(req) return resp.body.to_map() except Exception as e: logger.error(f"Error in get_order_base_info: {e}") raise
- src/alibabacloud_dms_mcp_server/server.py:611-612 (registration)Registration of the 'getOrderInfo' tool in the configured database toolset (used when a default database ID is set). Applies the tool decorator to the get_order_base_info handler.self.mcp.tool(name="getOrderInfo", description="Retrieve order information from DMS using the order ID.", annotations={"title": "获取DMS工单详情", "readOnlyHint": True})(get_order_base_info)
- src/alibabacloud_dms_mcp_server/server.py:741-742 (registration)Registration of the 'getOrderInfo' tool in the full toolset (used when no default database ID is set). Applies the tool decorator to the get_order_base_info handler.self.mcp.tool(name="getOrderInfo", description="Retrieve order information from DMS using the order ID.", annotations={"title": "获取DMS工单详情", "readOnlyHint": True})(get_order_base_info)