getOrderInfo
Retrieve detailed order information from Alibaba Cloud DMS using the order ID. Simplify data access and querying across diverse database ecosystems with this tool.
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 core handler function for the 'getOrderInfo' tool. It calls the Alibaba Cloud DMS API to retrieve base information for a given order ID.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, linking 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, linking 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)