Skip to main content
Glama
Shopify MCP Server

Shopify MCP Server

by morsimohsen

adjust_inventory

Change Shopify inventory quantities by a positive or negative delta for a specific inventory item and location, optionally recording a reason to keep stock counts accurate.

Instructions

Adjust inventory quantity by a delta (positive or negative)

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 to add, negative to subtract)
reasonNoReason for adjustment
locationIdYesLocation ID
inventoryItemIdYesInventory item ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and it is mostly silent. It does not say whether the adjustment can drive quantity below zero, whether it is atomic, what happens when the item/location combo does not exist, or how the 'reason' field is used; only the sign convention of the delta is disclosed.

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?

A single front-loaded sentence with no filler; the core distinction (delta-based adjustment) appears immediately. It is lean to the point of omitting behavior, but nothing written is wasted.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a mutation with no annotations and no output schema, so the description must explain side effects and failure modes, and it does not. Key questions an agent needs answered before calling — negative-stock policy, required permissions, and what the call returns or throws — are all left open.

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%, so all four parameters are already documented, including the delta sign convention. The description repeats that sign meaning but adds no constraint or format detail beyond the schema, so baseline 3 applies.

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?

The description gives a specific verb ('adjust'), resource ('inventory quantity') and mechanism ('a delta, positive or negative'), which lets an agent distinguish a relative change from the absolute-setting sibling set_inventory. It stops short of naming that sibling explicitly, so the differentiation is inferable rather than stated.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no mention of prerequisites such as stock or permission checks, and no named alternative such as set_inventory for absolute overrides. The delta wording implies a relative-update scenario but the agent must infer that on its own.

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