Skip to main content
Glama

Adjust product inventory

ecwid_adjust_product_inventory
Destructive

ADJUSTS a product's in-stock quantity by a delta — this MODIFIES live store data. Positive increases stock, negative decreases it. Ecwid REST: PUT /products/{productId}/inventory with JSON body {quantityDelta}. Returns {updateCount, warning?}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
product_idYesProduct id to adjust.
quantity_deltaYesChange in stock quantity — positive increases stock, negative decreases.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the destructiveHint annotation, the description discloses that it modifies live store data, explains positive and negative delta behavior, names the REST endpoint, and specifies the response shape. This is useful behavioral context that annotations alone do not provide.

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?

Three compact sentences front-load the core action and destructive nature, then provide delta semantics, endpoint, and response. No redundant or filler content appears.

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 simple two-parameter mutation tool with destructiveHint already set, the description covers the operation, parameter behavior, endpoint, and return shape. An agent has enough information to select and invoke it correctly.

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?

The schema already covers both parameters at 100%, including the meaning of quantity_delta. The description adds the REST body format and return value, but it does not substantially deepen parameter semantics beyond 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 states a specific verb ('ADJUSTS'), the exact resource ('a product's in-stock quantity'), and the mechanism ('by a delta'). It is clearly distinct from sibling read tools and even from update_order.

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?

The description clearly conveys that this tool is for inventory adjustments via a delta, and the sibling context contains no similar inventory tool. It does not explicitly state when not to use it, but the intended context is unambiguous.

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.

TDQS

A3.9/5.0
Disambiguation5/5

Each tool targets a distinct resource-action pair (e.g., get by ID vs. search/list, adjust inventory vs. update order). The prefix `ecwid_` plus verb-noun structure makes boundaries clear, and no two tools appear to perform the same task.

Naming Consistency5/5

All tools follow the `ecwid_<verb>_<resource>` pattern with verbs like get, list, search, adjust, update. The naming is uniform and predictable, with no mixed conventions or vague verbs.

Tool Count5/5

12 tools is within the ideal range for a domain-specific API covering products, categories, customers, orders, coupons, and store profile. Each tool has a clear purpose and the set is well-scoped without redundancy.

Completeness2/5

The set covers read operations well but lacks create/update/delete for most resources (products, categories, customers, coupons). Only inventory adjustment and order status update are provided as mutations, leaving significant gaps in lifecycle management that an agent would likely need.