convert_region_prices
Converts a tax-exclusive price into local Google Play prices for all regions using current exchange rates and country pricing patterns, returning regional prices and the required region version.
Instructions
Convert one tax-exclusive price into local prices for every region Google Play sells in, using today's exchange rates and each country's pricing patterns (e.g. .99 endings). Calculates only, nothing is saved. Returns convertedRegionPrices (a map of region code to {price, taxAmount}), convertedOtherRegionsPrice (USD and EUR prices for regions without local currency support) and regionVersion.version, which is the regions_version that create_subscription, update_subscription, update_one_time_product and the offer tools require. Use the prices as the regional configs of those tools.
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": {
"amount": "<amount>",
"currency_code": "<currency_code>"
},
"name": "convert_region_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Price before tax as a plain decimal, e.g. '4.99' (up to 9 decimal places) | |
| package_name | No | App package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME) | |
| currency_code | Yes | ISO 4217 currency of amount, e.g. 'USD' | |
| product_tax_category_code | No | Product tax category code, when the product has one, so the right tax rates go into the calculation |