Skip to main content
Glama
aliyun

Alibaba Cloud DMS MCP Server

Official
by aliyun

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
NameRequiredDescriptionDefault
order_idYesDMS 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
  • 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)
  • 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)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aliyun/alibabacloud-dms-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server