Skip to main content
Glama

SkuVault MCP by usefulapi

Set stock quantity

skuvault_set_stock_quantity
DestructiveIdempotent

WRITE: set the exact quantity of a product at one warehouse location, overwriting what is there (running it again with the same values changes nothing more). Use skuvault_get_inventory_by_location first to see the current quantity. Moderate throttling (10/min). POST /inventory/setItemQuantity.

Input Schema

NameRequiredDescriptionDefault
skuNoProduct SKU (give sku or code).
codeNoProduct code (give sku or code).
quantityYesThe new quantity at that location (0 or more).
warehouse_idYesSkuVault warehouse id (an integer; see skuvault_list_warehouses).
location_codeYesLocation whose quantity is set.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false, and openWorldHint=true, so the safety profile is covered. The description adds valuable context beyond annotations: overwrite behavior, an idempotency clarification, a moderate throttling limit of 10/min, and the underlying POST endpoint. It does not describe auth requirements or return behavior, but with annotations present those gaps are less severe.

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?

The description is three tight sentences, front-loaded with the WRITE label and primary action. Every element earns its place: overwrite semantics, prerequisite read, throttling, and endpoint. There is no wasted wording.

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?

The description covers the action, destructive overwrite behavior, idempotency, a useful prerequisite, throttling, and the endpoint. No output schema exists, so explaining return values is unnecessary. It is nearly complete, with only a minor gap around explicitly routing between this and the add/remove siblings.

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 the schema already documents all five parameters. The description reinforces that quantity is exact and scoped to one warehouse location, but it does not add syntax, format, or selection guidance beyond what the schema provides. Baseline 3 is appropriate when the schema carries parameter 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?

States a specific verb and resource: set the exact quantity of a product at one warehouse location, with the explicit overwrite scope. The overwrite wording distinguishes it from additive siblings like skuvault_add_stock and skuvault_remove_stock without needing to open their schemas.

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?

Recommends using skuvault_get_inventory_by_location first to see the current quantity, which is useful workflow guidance. However, it does not explicitly state when to choose this tool over skuvault_add_stock or skuvault_remove_stock, nor does it include exclusions or when-not-to-use guidance.

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.