Skip to main content
Glama
shopify-mcp-complete

shopify-mcp-complete

by hishamalhadi

set-inventory

Overwrites the current stock quantity for an inventory item at a specific location with an exact value. Use it to correct or reconcile location inventory counts.

Instructions

Set inventory to a specific quantity at a location. This replaces the current quantity rather than adjusting it.

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>",
      "quantity": "<quantity>"
    },
    "name": "set-inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNocorrection
quantityYesNew quantity to set
locationIdYesLocation ID
inventoryItemIdYesInventory item ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It valuably discloses the destructive overwrite semantics ('replaces the current quantity'), but says nothing about permissions, audit/movement side effects implied by the reason enum, idempotency, or error conditions.

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, front-loaded with the operation and immediately followed by the critical replacement semantic. There is no redundant or filler wording.

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?

The description covers the core operation but leaves meaningful gaps for a mutation tool with no annotations and no output schema: permissions, resulting movement/audit records, and failure behavior are unaddressed. It is adequate but not complete for a 4-parameter inventory write.

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 75%, so the baseline is 3. The description adds only location-scoping context and no meaning beyond the schema for quantity, inventoryItemId, locationId, or the undocumented reason enum values.

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 and resource ('Set inventory') plus the scope ('at a location'), and immediately distinguishes the operation from an adjustment by saying it replaces the current quantity. An agent can tell this apart from adjust-inventory without opening either schema.

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 contrast with adjustment ('replaces the current quantity rather than adjusting it') clearly signals when to use this tool versus delta-based alternatives. However, it does not explicitly name adjust-inventory or bulk-adjust-inventory, nor does it state exclusions or prerequisites.

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