Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Mondovo. If you published it, claim ownership there.

Create or update a location display variable

upsert_geo_variable
Idempotent

Create 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

NameRequiredDescriptionDefault
nameYesCustom variable name, such as delivery_message
site_idYesThe site, from list_sites
variableYesLocation display variable configuration
user_goalNoOptional: 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / variable / properties / rules / description
      Previous value: -"Location-specific display rules"New value: +"Location-specific display rules. Most specific wins: city > region > one country > a country list or group, so \"eurozone €18\" plus \"IE €20\" gives Ireland €20."
    • addedInput schema / properties / variable / properties / rules / items / properties / countries
      Added value: +{
      +  "description": "Several ISO 3166-1 alpha-2 codes in one rule (e.g. [\"DE\",\"FR\",\"IT\"]). Use instead of `country`, not with it.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / variable / properties / rules / items / properties / country / description
      Previous value: -"ISO 3166-1 alpha-2 country code"New value: +"ISO 3166-1 alpha-2 country code, for one country"
    • addedInput schema / properties / variable / properties / rules / items / properties / group
      Added value: +{
      +  "description": "A named country group that fills `countries`: eurozone (Eurozone (euro countries)), eu (European Union), eea (European Economic Area (EU + Iceland, Liechtenstein, Norway)), uk_ireland (UK and Ireland), dach (DACH (Germany, Austria, Switzerland)), benelux (Benelux), nordics (Nordics), north_america (North America (US, Canada)), latin_america (Latin America), gcc (Gulf (GCC)), south_asia (South Asia), asean (Southeast Asia (ASEAN)), anz (Australia and New Zealand)",
      +  "enum": [
      +    "eurozone",
      +    "eu",
      +    "eea",
      +    "uk_ireland",
      +    "dach",
      +    "benelux",
      +    "nordics",
      +    "north_america",
      +    "latin_america",
      +    "gcc",
      +    "south_asia",
      +    "asean",
      +    "anz"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / user_goal
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare idempotent, non-destructive, open-world, non-read-only, so the safety profile is covered. The description adds genuinely non-obvious behavior: replace-whole-variable semantics ("send every rule to keep"), refusal for managed-set variables, and that the response carries a literal marker for displayed copy.

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

Conciseness4/5

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

Front-loaded with the action and the replace semantics, then the caveats, then the scope limit — a sensible order with no filler sentences. The group enumeration with an ellipsis is slightly loose given the schema already lists all groups, but it costs little.

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?

Handles a nested-object mutation with 100% schema coverage: the description covers replacement semantics, the managed-set restriction, and the return marker, and there is no output schema that would need explaining. Nothing an agent needs before calling 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% and the schema already documents `default`, `rules`, precedence (city > region > country > group) and every group enum. The description restates the same matching dimensions and group examples without adding format, ordering, or conflict-resolution detail beyond the schema, so it sits at the high-coverage baseline.

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 specific verb pair and resource ("Create or replace one location-based display variable") plus the scope limitation that it handles exactly one variable. That distinguishes it cleanly from list_geo_variables and delete_geo_variable in the sibling set.

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?

Gives real when-not guidance: variables in a managed set are refused, with a pointer to list_geo_variables to check first. It also bounds the blast radius ("changes displayed copy only and never checkout or payment pricing"), which tells the agent when this is the wrong tool for a pricing change. It does not name the sibling to use instead for pricing edits, so not a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources