Skip to main content
Glama

Update product stock and prices

update_product_stock
DestructiveIdempotent

Updates stock quantity, availability and price of products in Prom.ua (by product id or external SKU) or stock in KeyCRM (by SKU or offer id). Each product costs one action.

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": {
      "store": "<store>",
      "items": "<items>"
    },
    "name": "update_product_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesProducts by sku (external id) or product_id with quantity/price/available
storeYesStore connection id or platform: prom or keycrm
warehouse_idNoKeyCRM warehouse id (default from the connection)

Output Schema

NameRequiredDescriptionDefault
demoNo
noteNo
storeYes
failedNo
updatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavioral context by disclosing the cost model ('each product costs one action'), which tells the agent batch size carries a billing consequence. It stops short of saying what happens to fields omitted from an item or how partial failures behave.

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

Conciseness5/5

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

Two short sentences, zero filler, with the supported platforms and the cost constraint front-loaded. Every clause carries operational information an agent needs before calling.

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?

An output schema exists, so return values need not be explained, and annotations cover the destructive/idempotent profile. What is missing for a tool that accepts up to 100 items per call is failure semantics: whether a bad SKU aborts the batch, and whether unspecified fields on an item are left untouched or cleared.

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 description coverage is 100%, so the baseline is 3, but the description goes beyond it by mapping which identifier is valid per platform (product_id/external SKU for Prom.ua, SKU/offer id for KeyCRM), which the schema does not disambiguate. It does not clarify that quantity/price/available are individually optional per item, so nothing is added on partial-update semantics.

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?

Names a specific verb (updates) and resource (stock quantity, availability, price) and splits the target systems precisely: Prom.ua matched by product_id or external SKU, KeyCRM matched by SKU or offer id. An agent immediately knows this is the stock/price mutation tool for those two platforms, and no sibling in the catalog overlaps with that scope.

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

Usage Guidelines3/5

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

The description implies usage by specifying that Prom.ua takes product_id/external SKU while KeyCRM takes SKU/offer id, which guides platform selection. However it never states when to prefer this over other paths or what preconditions must hold (e.g. store connection must exist, products must already be created), leaving the agent to infer the triggering conditions.

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