submitOrderApproval
Submit database management service (DMS) orders for approval using the order ID within Alibaba Cloud’s MCP Server, ensuring efficient workflow and compliance.
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 core handler function that executes the submitOrderApproval tool logic by creating a DMS client, preparing the SubmitOrderApprovalRequest with the order_id, calling the API, and returning the response or raising an error.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)Registers the submit_order_approval handler as the 'submitOrderApproval' tool in the configured database toolset (when default_database_id is set).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)Registers the submit_order_approval handler as the 'submitOrderApproval' tool in the full toolset (when no default_database_id is set).self.mcp.tool(name="submitOrderApproval", description="Submit the order for approval in DMS using the order ID.", annotations={"title": "提交工单审批", "readOnlyHint": False})(submit_order_approval)