Skip to main content
Glama

convert_region_prices

Read-only

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

NameRequiredDescriptionDefault
amountYesPrice before tax as a plain decimal, e.g. '4.99' (up to 9 decimal places)
package_nameNoApp package name, e.g. 'com.acme.app' (defaults to GOOGLE_PLAY_PACKAGE_NAME)
currency_codeYesISO 4217 currency of amount, e.g. 'USD'
product_tax_category_codeNoProduct tax category code, when the product has one, so the right tax rates go into the calculation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnlyHint and openWorldHint, and the description is fully consistent, explicitly stating nothing is saved. It goes well beyond annotations by disclosing the calculation basis (today's exchange rates, local .99-style pricing patterns) and enumerating the exact return payload, including which field downstream write tools require.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences in a deliberate order: what it does, that it is a pure calculation, then the exact return shape and how to consume it. Every clause carries information, and the purpose is front-loaded before the return details.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, yet the description names all three return fields (convertedRegionPrices map, convertedOtherRegionsPrice USD/EUR, regionVersion.version) and explains their downstream purpose. Nothing an agent needs to call or interpret the result is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all four parameters are already documented in the schema; baseline 3 applies. The description only reinforces that the input amount is tax-exclusive, which duplicates the schema's 'Price before tax' wording and adds no format, unit or default guidance beyond it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a precise verb+resource+scope: convert one tax-exclusive price into local prices for every region Google Play sells in, via today's exchange rates and per-country pricing patterns. No listed sibling does currency conversion, so the tool is unambiguously distinguishable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clearly frames the use case: run this to obtain regional configs, then feed prices and regionVersion.version into create_subscription, update_subscription, update_one_time_product and the offer tools. 'Calculates only, nothing is saved' signals what it is not for (persistence), though no explicit exclusions or prerequisites (e.g. required scopes) are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.