Skip to main content
Glama

Set product prices in other currencies

upsert_product_prices
DestructiveIdempotent

Add, update or REMOVE the price-list rows of ONE product — the price it sells at in another currency, for example EUR for an eBay site — keeping its other currencies and its own workspace-currency price. Send only an amount the user stated: never a converted or estimated price; to drop a currency send its code in remove. The product's own currency is refused; change that with update_product's price. A price for one channel only is set_product_channel_price; see all of a product's prices with get_product_pricing. Saves through the same product-card operation as the CRM form, with a version check (on CONFLICT re-read the product and retry), and the new price reaches connected channels like a manual edit. Idempotent. The result echoes the workspace.

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": {
      "id": "<id>"
    },
    "name": "upsert_product_prices"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe product id returned by search_products or get_product.
pricesNoPrice-list rows to add or update, one per currency (uppercase 3-letter ISO code, e.g. EUR), an amount greater than 0 — the price the product sells at in that currency on every channel that trades in it. Refused for the product's own workspace currency — use update_product's price field for that one. Never a converted or guessed value: send exactly the amount the user gave for that market. Not a per-channel price: a price for ONE channel only is set_product_channel_price. Omit it when you only remove currencies.
removeNoCurrencies whose price-list row to REMOVE (uppercase 3-letter ISO code). The product stops being sold in that currency on channels that trade in it. The product's own workspace currency cannot be removed here, and a currency named in prices cannot also be removed. A currency with no row is ignored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / prices / description
      Previous value: -"Channel prices to add or update, one row per currency (uppercase 3-letter ISO code, e.g. EUR), an amount greater than 0. Refused for the product's own workspace currency — use update_product's price field for that one. Never a converted or guessed value: send exactly the amount the user gave for that market."New value: +"Price-list rows to add or update, one per currency (uppercase 3-letter ISO code, e.g. EUR), an amount greater than 0 — the price the product sells at in that currency on every channel that trades in it. Refused for the product's own workspace currency — use update_product's price field for that one. Never a converted or guessed value: send exactly the amount the user gave for that market. Not a per-channel price: a price for ONE channel only is set_product_channel_price. Omit it when you only remove currencies."
    • removedInput schema / properties / prices / minItems
      Removed value: -1
    • addedInput schema / properties / remove
      Added value: +{
      +  "description": "Currencies whose price-list row to REMOVE (uppercase 3-letter ISO code). The product stops being sold in that currency on channels that trade in it. The product's own workspace currency cannot be removed here, and a currency named in prices cannot also be removed. A currency with no row is ignored.",
      +  "items": {
      +    "pattern": "^[A-Z]{3}$",
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "id",
      -  "prices"
      -]New value: +[
      +  "id"
      +]
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare idempotentHint and destructiveHint, and the description reinforces and extends them: version check with re-read-and-retry on CONFLICT, propagation to connected channels like a manual edit, and the effect of removal on channel listings. This is exactly the extra behavioral context the annotations cannot carry.

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?

Dense but front-loaded: the core operation leads, with the routing alternatives and behavioral notes following. Some phrasing overlaps the schema's own parameter documentation, keeping it just short of maximally tight.

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

Completeness4/5

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

For a mutation tool with no output schema it covers conflict handling, idempotency, channel propagation, and removal semantics. The one thin spot is the return value, described only as 'echoes the workspace', which is vague for an agent checking results.

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

Parameters4/5

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

Schema coverage is 100% and the schema descriptions are thorough, so the baseline is 3. The description still adds semantic guidance beyond the schema: never a converted or estimated value, omit prices when only removing, and the refusal cases for the product's own currency.

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 set (add/update/REMOVE) and resource (price-list rows of ONE product in another currency), including scope examples. It explicitly distinguishes itself from set_product_channel_price, update_product, and get_product_pricing, so an agent can route correctly without opening schemas.

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

Usage Guidelines5/5

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

Names the alternative tools and the conditions that select them: per-channel pricing goes to set_product_channel_price, the workspace-currency price to update_product, and viewing prices to get_product_pricing. It also tells the agent to send only user-stated amounts and how to drop a currency via remove.

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