Create or update a location display variable
upsert_geo_variableCreate or replace one location-based display variable using the exact plain-text fallback and regional values supplied by the owner. variable is an object with default and rules; rules may select by ISO country, a list of countries, a named country group (eurozone, eu, gcc, nordics, latin_america …), region and city. Replaces the whole variable: send every rule to keep. Variables in a managed set (see list_geo_variables) are refused. The result includes the literal marker to place in displayed copy. This changes displayed copy only and never checkout or payment pricing.
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": {
"site_id": "<site_id>",
"name": "<name>",
"variable": "<variable>"
},
"name": "upsert_geo_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Custom variable name, such as delivery_message | |
| site_id | Yes | The site, from list_sites | |
| variable | Yes | Location display variable configuration | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |