Skip to main content
Glama

Change a product

update_product
DestructiveIdempotent

Changes a product. Send only what changes: every field left out keeps its current value, and null clears an optional one. Pricing is replaced whole when sent. Orders already placed keep the price they were bought at. If the product is on the page, the page is republished so it shows the change. Show what changes, the price and currency especially. Before calling, show the person exactly what will be saved and get their explicit yes in the conversation. Never assume a currency.

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": {
      "business": "<business>",
      "productId": "<productId>"
    },
    "name": "update_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoone_time (the default) or subscription: Stripe charges the buyer every interval until they or the owner cancel. Set when the product is created; it cannot be changed after. A subscription needs the Pro plan and Stripe pricing, and has no stock limit or quantity.
titleNoWhat the product is called.
policyNoRefund and terms shown to the customer before they book.
pricingNoHow it is paid for. "stripe" takes real money and needs Stripe connected; "display" only shows a price; "free" is no charge. Ask the person which currency they charge in before suggesting a price — never assume US dollars, and say the currency whenever you quote an amount.
supportNoHow a customer reaches the seller about a booking.
businessYesThe page handle, as it appears in keepp.link/<handle>.
intervalNoHow often a subscription is charged. Required for a subscription; ignored otherwise.
mediaUrlsNoUp to 5 image URLs. Outside images are downloaded and stored on Keepp; nothing needs uploading.
productIdYesFrom list_catalog.
questionsNoExtra questions asked of the customer. Send the list back as get_product or get_booking_unit gave it.
stockLimitNoHow many can be sold; null for unlimited.
deliveryUrlNoWhat a buyer gets after paying: the course, download or file link. Shown on the buyer's order page once they have paid (their confirmation email links there, and never contains it).
descriptionNo
quantitySelectableNoWhether a buyer can choose how many to buy.
deliveryInstructionsNoShown with the delivery link on the buyer's order page after paying.

Output Schema

NameRequiredDescriptionDefault
updatedYesFalse when the person declined, and nothing was updated.
productIdNo
pageRefreshedNoWhether the published page was republished to show the change. False when it is not on the page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / interval
      Added value: +{
      +  "description": "How often a subscription is charged. Required for a subscription; ignored otherwise.",
      +  "enum": [
      +    "week",
      +    "month",
      +    "year"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "one_time (the default) or subscription: Stripe charges the buyer every interval until they or the owner cancel. Set when the product is created; it cannot be changed after. A subscription needs the Pro plan and Stripe pricing, and has no stock limit or quantity.",
      +  "enum": [
      +    "one_time",
      +    "subscription"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / pricing / description
      Previous value: -"How it is paid for. \"stripe\" takes real money and needs Stripe connected; \"display\" only shows a price; \"free\" is no charge. Free and display need a Pro plan. Ask the person which currency they charge in before suggesting a price — never assume US dollars, and say the currency whenever you quote an amount."New value: +"How it is paid for. \"stripe\" takes real money and needs Stripe connected; \"display\" only shows a price; \"free\" is no charge. Ask the person which currency they charge in before suggesting a price — never assume US dollars, and say the currency whenever you quote an amount."
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations it discloses the merge semantics (omitted fields persist, null clears), that pricing is replaced wholesale rather than merged, that past orders retain their purchase price, and that the page is republished as a side effect. It also imposes a human-confirmation requirement before mutation, which is exactly the kind of behavioral context an agent cannot infer from readOnlyHint/destructiveHint alone.

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?

The mutation semantics are front-loaded in the second sentence, and each sentence carries a distinct rule with essentially no filler. The currency warning is repeated in the pricing schema, so there is minor redundancy, but nothing is wasted at the top level.

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?

For a 15-parameter, nested-object mutation tool with an output schema, the description covers the things the structured fields cannot: patch vs replace, destructive side effects on the live page, historical price preservation, and the confirmation gate. Field-level detail is left to the well-covered schema, which is the right division of labor.

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 already 93%, so the schema does the heavy lifting on fields like pricing, kind, and interval. The description still adds real meaning the schema does not: the null-clears-an-optional-field rule, the all-or-nothing semantics of the pricing object, and the explicit prohibition on defaulting currency to USD.

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

Purpose4/5

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

"Changes a product" names a specific verb and resource, and the following sentences make clear this is a partial patch rather than a full replace, which implicitly separates it from create_product and delete_product. It stops short of explicitly naming a sibling or stating its boundary against update_booking_unit, so it is clear but not maximally distinctive.

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?

It gives concrete operating guidance: send only changed fields, use null to clear optional ones, show the person what will be saved and get an explicit yes before calling. It does not address when to prefer get_product/preview_page first or when this is the wrong tool, so it is strong context without explicit exclusions.

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