Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

adjust-inventory

Adjust inventory quantity for a specific variant at a location by applying a positive or negative delta, enabling incremental stock changes without replacing total counts.

Instructions

Adjust inventory quantity for a specific variant at a location. Use positive delta to add stock, negative to remove. This is for incremental changes.

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": {
      "inventoryItemId": "<inventoryItemId>",
      "locationId": "<locationId>",
      "delta": "<delta>"
    },
    "name": "adjust-inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
deltaYesQuantity change (positive or negative)
reasonNoAdjustment reasoncorrection
locationIdYesLocation ID
inventoryItemIdYesInventory item ID (from variant)
referenceDocumentUriNoReference document URI

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses incremental versus absolute behavior and positive/negative delta semantics, but omits permissions, atomicity or idempotency, negative-stock behavior, validation failures, side effects, and response details.

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 short sentences with the purpose front-loaded first, then sign semantics, then a scope contrast. No sentence is redundant or padded.

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

Completeness3/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 annotations and no output schema, the description supplies core call semantics and differentiates incremental from absolute adjustment. It still lacks guidance on choosing among sibling inventory tools and omits side-effect, validation, and result-shape context.

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?

Schema description coverage is 100%, and the schema already documents all five parameters, including the delta sign semantics and reason enum. The description merely restates the delta sign meaning and adds little parameter detail beyond the schema.

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?

States a specific mutation (adjust inventory quantity) and scope (a specific variant at a location). The phrase 'incremental changes' helps distinguish it from an absolute set operation, though it does not explicitly name set-inventory or bulk-adjust-inventory.

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?

Explains how to use the delta sign to add or remove stock and frames the tool as incremental rather than absolute. However, it gives no explicit guidance on when to choose this over set-inventory or bulk-adjust-inventory, and no prerequisites or exclusions are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.