rms_order_detail
Retrieves complete details for specified order numbers from Rakuten RMS sales data. Use to access comprehensive information about individual orders.
Instructions
Full order detail by order number(s)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_numbers | Yes |
Implementation Reference
- rms_mcp/server.py:153-155 (handler)The handler function for the rms_order_detail tool. It calls api.get_order() with the order_numbers from arguments and returns the full order detail as pretty-printed JSON.
async def _order_detail(args: dict, api: OrderAPI) -> list[TextContent]: r = api.get_order(args["order_numbers"]) return [TextContent(type="text", text=json.dumps(r, ensure_ascii=False, indent=2))] - rms_mcp/server.py:62-65 (schema)Tool registration and input schema definition. Defines the tool name, description, and input schema requiring an order_numbers array of strings.
Tool(name="rms_order_detail", description="Full order detail by order number(s)", inputSchema={"type": "object", "properties": { "order_numbers": {"type": "array", "items": {"type": "string"}}, }, "required": ["order_numbers"]}), - rms_mcp/server.py:82-83 (registration)Routes the tool call to the _order_detail handler when name matches 'rms_order_detail'.
elif name == "rms_order_detail": return await _order_detail(arguments, api) - rms_mcp/order_api.py:29-33 (helper)The API helper that actually calls the RMS REST endpoint /order/getOrder/ with the list of order numbers and version 7.
def get_order(self, order_numbers: list[str]) -> dict: return self._c.post( "/order/getOrder/", json={"orderNumberList": order_numbers, "version": "7"}, ).json()