quote
Calculates USD costs for a Huawei Cloud bill of materials using the official rating engine, with on-demand, monthly, or yearly billing options.
Instructions
Price a bill of materials with Huawei Cloud's official rating engine (USD).
items: [{service, spec, quantity=1, size=None, usage_factor=None, usage_value=None}]
spec comes from search_skus; size is capacity in GB for disks/volumes.
usage_value for usage-billed items (OBS storage GB, traffic GB, requests). billing='ondemand' prices
hours(730 = one month); 'monthly'/'yearly' priceperiodsmonths/years and include the official yearly discount.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"region": "<region>",
"items": "<items>"
},
"name": "quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| items | Yes | ||
| region | Yes | ||
| billing | No | ondemand | |
| periods | No |