submitOrderApproval
Submit a DMS order for approval using its order ID to initiate the review process.
Instructions
Submit the order for approval in 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 that calls the Alibaba Cloud DMS Enterprise client to submit an order for approval.async def submit_order_approval( order_id: str = Field(description="DMS order ID") ) -> Dict[str, Any]: client = create_client() req = dms_enterprise_20181101_models.SubmitOrderApprovalRequest() req.order_id = order_id try: resp = client.submit_order_approval(req) return resp.body.to_map() except Exception as e: logger.error(f"Error in submit_order_approval: {e}") raise
- src/alibabacloud_dms_mcp_server/server.py:614-616 (registration)Tool registration in the configured database toolset.self.mcp.tool(name="submitOrderApproval", description="Submit the order for approval in DMS using the order ID.", annotations={"title": "提交工单审批", "readOnlyHint": False})(submit_order_approval)
- src/alibabacloud_dms_mcp_server/server.py:744-746 (registration)Tool registration in the full toolset.self.mcp.tool(name="submitOrderApproval", description="Submit the order for approval in DMS using the order ID.", annotations={"title": "提交工单审批", "readOnlyHint": False})(submit_order_approval)