Skip to main content
Glama

Change a product

update_product
DestructiveIdempotent

Changes data: changes a product's SKU, description or unit, as the person who connected this app, and records it in the organization's audit log. What it replaces is gone, and description: null or unit: null clears it. Use it only when the user asks to change a product, and say what will change before calling it. Only the arguments you send change; the rest stay, and sending the values it already has changes nothing. A new SKU that another product already has is refused with an error naming that product. Only for an organization that keeps a product catalogue. Get the product_id from list_products.

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

Input Schema

NameRequiredDescriptionDefault
skuNoThe product's SKU in the organization's ERP, such as "ABC-1". Case does not matter.
unitNoThe unit the organization counts it in, such as "box".
product_idYesA product id such as "prd_45", as returned by list_products.
descriptionNoWhat the product is, such as "Hass avocado 4kg".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only flag the write as destructive and idempotent; the description goes further by disclosing audit-log recording, act-as-the-connecting-user identity, wipe-on-null semantics, partial-update behavior, no-op behavior for unchanged values, and the specific conflict error for a duplicate SKU. These are exactly the mutation traits an agent cannot read off the annotations.

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 paragraph is dense with useful content and front-loads the destructive/clearing behavior before the usage guidance. The opening 'Changes data: changes a product's...' is slightly redundant, but no sentence is filler.

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 four-parameter mutation with no output schema, the definition covers identity/auth context, destructive semantics, idempotency, conflict handling, preconditions, and id sourcing. There is no output schema to explain, and nothing an agent needs in order to call it safely is missing.

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%, so the baseline is 3, but the description adds meaning the schema does not: `description: null`/`unit: null` actively clears those fields, only supplied arguments change, re-sending existing values is a no-op, and the SKU must be unique or the call is refused with a named conflict. That goes beyond the per-parameter descriptions, though it does not explain the maxLength/format constraints already in the schema.

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?

The description names a specific verb and resource plus the exact fields it can touch (SKU, description, unit), and the qualifier 'Changes data:' plus 'Only when the user asks to change a product' separates it from create_product or the unrelated update_* siblings. An agent can tell what this tool does without opening the schema.

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?

It gives explicit gating ('Use it only when the user asks to change a product'), a required confirmation step ('say what will change before calling it'), a scope precondition ('Only for an organization that keeps a product catalogue'), and a pointer to list_products for obtaining the id. That is when-to-use, precondition, and prerequisite acquisition all in one paragraph.

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